]> git.proxmox.com Git - mirror_zfs.git/blame - Makefile.am
Configure --with-spl{-obj} auto-detect cleanup
[mirror_zfs.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 4
fd7fd5eb 5SUBDIRS = include
c9c0d073 6if CONFIG_USER
fd7fd5eb 7SUBDIRS += dracut udev etc man scripts lib cmd
c9c0d073
BB
8endif
9if CONFIG_KERNEL
fd7fd5eb 10SUBDIRS += module
775f2d34
BB
11
12extradir = /usr/src/zfs-$(VERSION)
13extra_HEADERS = zfs.release.in zfs_config.h.in
14
15kerneldir = /usr/src/zfs-$(VERSION)/$(LINUX_VERSION)
16nodist_kernel_HEADERS = zfs.release zfs_config.h module/$(LINUX_SYMBOLS)
c9c0d073 17endif
c9c0d073 18
8160dd9a 19AUTOMAKE_OPTIONS = foreign
c9c0d073
BB
20EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in
21EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
e07b579b 22EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE
56b45e69 23EXTRA_DIST += dkms.postinst copy-builtin
c9c0d073
BB
24
25distclean-local::
26 -$(RM) -R autom4te*.cache
27 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
28 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
29 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
30 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
1ae93745 31 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
c9c0d073
BB
32 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
33 -o -name 'Makefile' -o -name 'Module.symvers' \
1ae93745 34 -o -name '*.order' -o -name '*.markers' \) \
c9c0d073
BB
35 -type f -print | xargs $(RM)
36
c9c0d073
BB
37ctags:
38 $(RM) $(top_srcdir)/tags
39 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
40
41etags:
42 $(RM) $(top_srcdir)/TAGS
43 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
44
45tags: ctags etags
46
47pkg: @DEFAULT_PACKAGE@
48pkg-modules: @DEFAULT_PACKAGE@-modules
49pkg-utils: @DEFAULT_PACKAGE@-utils