]>
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 | |
c2dceb5c | 4 | include $(top_srcdir)/config/arch.am |
86933a6e BB |
5 | |
6 | if CONFIG_USER | |
7 | USER_DIR = lib cmd scripts | |
8 | endif | |
9 | if CONFIG_KERNEL | |
10 | KERNEL_DIR = module include | |
11 | endif | |
12 | SUBDIRS = $(USER_DIR) $(KERNEL_DIR) | |
c5f70460 | 13 | |
d8a1b739 | 14 | AUTOMAKE_OPTIONS = foreign |
287b2fb1 BB |
15 | EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER |
16 | EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am | |
d83d25c2 | 17 | EXTRA_DIST += dkms.postinst |
d801db14 | 18 | noinst_HEADERS = spl_config.h spl.release |
f1ca4da6 | 19 | |
c5f70460 BB |
20 | distclean-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 | 32 | if CONFIG_KERNEL |
c5f70460 | 33 | install-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 \ |
39a3d2a4 BB |
37 | $(INSTALL) -D $$instfile $$instdest/$$instfile; \ |
38 | done | |
86933a6e | 39 | endif |
c5f70460 BB |
40 | |
41 | ctags: | |
42 | $(RM) $(top_srcdir)/tags | |
43 | find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags | |
44 | ||
45 | etags: | |
46 | $(RM) $(top_srcdir)/TAGS | |
47 | find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a | |
48 | ||
49 | tags: ctags etags | |
50 | ||
287b2fb1 BB |
51 | pkg: @DEFAULT_PACKAGE@ |
52 | pkg-modules: @DEFAULT_PACKAGE@-modules | |
53 | pkg-utils: @DEFAULT_PACKAGE@-utils |