]>
Commit | Line | Data |
---|---|---|
86933a6e | 1 | include $(top_srcdir)/config/rpm.am |
287b2fb1 BB |
2 | include ${top_srcdir}/config/deb.am |
3 | include ${top_srcdir}/config/tgz.am | |
86933a6e BB |
4 | |
5 | if CONFIG_USER | |
6 | USER_DIR = lib cmd scripts | |
7 | endif | |
8 | if CONFIG_KERNEL | |
9 | KERNEL_DIR = module include | |
10 | endif | |
11 | SUBDIRS = $(USER_DIR) $(KERNEL_DIR) | |
c5f70460 | 12 | |
f1ca4da6 | 13 | AUTOMAKE_OPTIONS = foreign dist-zip |
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 | |
16b719f0 | 16 | noinst_HEADERS = spl_config.h |
f1ca4da6 | 17 | |
c5f70460 BB |
18 | distclean-local:: |
19 | -$(RM) -R autom4te*.cache | |
20 | -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \ | |
21 | -o -name .pc -o -name .hg -o -name .git \) -prune -o \ | |
22 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ | |
23 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ | |
24 | -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \ | |
25 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \ | |
fe883092 BB |
26 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \ |
27 | -o -name '*.order' -o -name '*.markers' \) \ | |
c5f70460 BB |
28 | -type f -print | xargs $(RM) |
29 | ||
86933a6e | 30 | if CONFIG_KERNEL |
c5f70460 | 31 | install-data-local: |
f4f9cd75 | 32 | destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \ |
099dc9c2 | 33 | instdest=$(DESTDIR)/usr/src/$$destname; \ |
5c3c70ad | 34 | echo "${SPL_META_VERSION}" >$$instdest/spl.release; \ |
2e0e7e69 | 35 | for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \ |
39a3d2a4 BB |
36 | $(INSTALL) -D $$instfile $$instdest/$$instfile; \ |
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 |