]> git.proxmox.com Git - mirror_zfs-debian.git/blame - Makefile.am
Add dracut support
[mirror_zfs-debian.git] / Makefile.am
CommitLineData
c9c0d073 1include $(top_srcdir)/config/rpm.am
6283f55e
BB
2include $(top_srcdir)/config/deb.am
3include $(top_srcdir)/config/tgz.am
c9c0d073
BB
4
5if CONFIG_USER
ae26d046 6USER_DIR = dracut etc man scripts lib cmd
c9c0d073
BB
7endif
8if CONFIG_KERNEL
9KERNEL_DIR = module
10endif
6283f55e 11SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include
c9c0d073 12
8160dd9a 13AUTOMAKE_OPTIONS = foreign
c9c0d073
BB
14EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in
15EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
1ae93745 16EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown
c9c0d073
BB
17EXTRA_DIST += OPENSOLARIS.LICENSE ZFS.RELEASE
18
19noinst_HEADERS = zfs_config.h
20
21distclean-local::
22 -$(RM) -R autom4te*.cache
23 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
24 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
25 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
26 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
1ae93745 27 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
c9c0d073
BB
28 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
29 -o -name 'Makefile' -o -name 'Module.symvers' \
1ae93745 30 -o -name '*.order' -o -name '*.markers' \) \
c9c0d073
BB
31 -type f -print | xargs $(RM)
32
33if CONFIG_KERNEL
34install-data-local:
35 destname=zfs-$(ZFS_META_VERSION)/$(LINUX_VERSION); \
36 instdest=$(DESTDIR)/usr/src/$$destname; \
6283f55e 37 echo "$(ZFS_META_VERSION)" >$$instdest/zfs.release; \
c9c0d073
BB
38 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
39 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
40 done
41endif
42
43ctags:
44 $(RM) $(top_srcdir)/tags
45 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
46
47etags:
48 $(RM) $(top_srcdir)/TAGS
49 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
50
51tags: ctags etags
52
53pkg: @DEFAULT_PACKAGE@
54pkg-modules: @DEFAULT_PACKAGE@-modules
55pkg-utils: @DEFAULT_PACKAGE@-utils