]>
Commit | Line | Data |
---|---|---|
86933a6e | 1 | include $(top_srcdir)/config/rpm.am |
a7958f7e BB |
2 | include $(top_srcdir)/config/deb.am |
3 | include $(top_srcdir)/config/tgz.am | |
86933a6e | 4 | |
d1142fbf | 5 | SUBDIRS = include |
86933a6e | 6 | if CONFIG_USER |
30196bfd | 7 | SUBDIRS += lib cmd scripts |
86933a6e BB |
8 | endif |
9 | if CONFIG_KERNEL | |
d1142fbf | 10 | SUBDIRS += module |
86933a6e | 11 | endif |
c5f70460 | 12 | |
d8a1b739 | 13 | AUTOMAKE_OPTIONS = foreign |
287b2fb1 BB |
14 | EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER |
15 | EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am | |
039bae18 | 16 | EXTRA_DIST += dkms.postinst copy-builtin |
d801db14 | 17 | noinst_HEADERS = spl_config.h spl.release |
f1ca4da6 | 18 | |
c5f70460 BB |
19 | distclean-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 | 31 | if CONFIG_KERNEL |
c5f70460 | 32 | install-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 | 38 | endif |
c5f70460 BB |
39 | |
40 | ctags: | |
41 | $(RM) $(top_srcdir)/tags | |
42 | find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags | |
43 | ||
44 | etags: | |
45 | $(RM) $(top_srcdir)/TAGS | |
46 | find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a | |
47 | ||
48 | tags: ctags etags | |
49 | ||
287b2fb1 BB |
50 | pkg: @DEFAULT_PACKAGE@ |
51 | pkg-modules: @DEFAULT_PACKAGE@-modules | |
52 | pkg-utils: @DEFAULT_PACKAGE@-utils |