]> git.proxmox.com Git - mirror_zfs-debian.git/blame - Makefile.am
Imported Upstream version 0.6.1
[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 4
90bb7494 5SUBDIRS = include rpm
c9c0d073 6if CONFIG_USER
fd7fd5eb 7SUBDIRS += dracut udev etc man scripts lib cmd
c9c0d073
BB
8endif
9if CONFIG_KERNEL
fd7fd5eb 10SUBDIRS += module
90bb7494
AX
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
90bb7494 20EXTRA_DIST = autogen.sh copy-builtin
c9c0d073 21EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
90bb7494 22EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE
c9c0d073
BB
23
24distclean-local::
25 -$(RM) -R autom4te*.cache
26 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
27 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
28 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
29 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
1ae93745 30 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
c9c0d073
BB
31 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
32 -o -name 'Makefile' -o -name 'Module.symvers' \
1ae93745 33 -o -name '*.order' -o -name '*.markers' \) \
c9c0d073
BB
34 -type f -print | xargs $(RM)
35
90bb7494
AX
36dist-hook:
37 sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
38 $(distdir)/META
c9c0d073
BB
39
40ctags:
41 $(RM) $(top_srcdir)/tags
42 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
43
44etags:
45 $(RM) $(top_srcdir)/TAGS
46 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
47
48tags: ctags etags
49
50pkg: @DEFAULT_PACKAGE@
90bb7494 51pkg-kmod: @DEFAULT_PACKAGE@-kmod
c9c0d073 52pkg-utils: @DEFAULT_PACKAGE@-utils