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