]> git.proxmox.com Git - mirror_zfs.git/blame - Makefile.am
Remove custom install-data-local for headers
[mirror_zfs.git] / Makefile.am
CommitLineData
86933a6e 1include $(top_srcdir)/config/rpm.am
a7958f7e
BB
2include $(top_srcdir)/config/deb.am
3include $(top_srcdir)/config/tgz.am
c2dceb5c 4include $(top_srcdir)/config/arch.am
86933a6e 5
d1142fbf 6SUBDIRS = include
86933a6e 7if CONFIG_USER
30196bfd 8SUBDIRS += lib cmd scripts
86933a6e
BB
9endif
10if CONFIG_KERNEL
d1142fbf 11SUBDIRS += module
86933a6e 12endif
c5f70460 13
d8a1b739 14AUTOMAKE_OPTIONS = foreign
287b2fb1
BB
15EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
16EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
039bae18 17EXTRA_DIST += dkms.postinst copy-builtin
d801db14 18noinst_HEADERS = spl_config.h spl.release
f1ca4da6 19
c5f70460
BB
20distclean-local::
21 -$(RM) -R autom4te*.cache
22 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
23 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
24 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
25 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
26 -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \
27 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
fe883092
BB
28 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
29 -o -name '*.order' -o -name '*.markers' \) \
c5f70460
BB
30 -type f -print | xargs $(RM)
31
86933a6e 32if CONFIG_KERNEL
c5f70460 33install-data-local:
a2eda2ff
BB
34 release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
35 instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
2e0e7e69 36 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
fea77534 37 $(INSTALL) -m 644 -D $$instfile $$instdest/$$instfile; \
39a3d2a4 38 done
86933a6e 39endif
c5f70460
BB
40
41ctags:
42 $(RM) $(top_srcdir)/tags
43 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
44
45etags:
46 $(RM) $(top_srcdir)/TAGS
47 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
48
49tags: ctags etags
50
287b2fb1
BB
51pkg: @DEFAULT_PACKAGE@
52pkg-modules: @DEFAULT_PACKAGE@-modules
53pkg-utils: @DEFAULT_PACKAGE@-utils