]>
Commit | Line | Data |
---|---|---|
86933a6e BB |
1 | include $(top_srcdir)/config/rpm.am |
2 | ||
3 | if CONFIG_USER | |
4 | USER_DIR = lib cmd scripts | |
5 | endif | |
6 | if CONFIG_KERNEL | |
7 | KERNEL_DIR = module include | |
8 | endif | |
9 | SUBDIRS = $(USER_DIR) $(KERNEL_DIR) | |
c5f70460 | 10 | |
f1ca4da6 | 11 | AUTOMAKE_OPTIONS = foreign dist-zip |
0c617c9a | 12 | EXTRA_DIST = autogen.sh spl.spec.in META DISCLAIMER |
0cbaeb11 | 13 | noinst_HEADERS = spl_config.h spl_unconfig.h |
f1ca4da6 | 14 | |
c5f70460 BB |
15 | distclean-local:: |
16 | -$(RM) -R autom4te*.cache | |
17 | -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \ | |
18 | -o -name .pc -o -name .hg -o -name .git \) -prune -o \ | |
19 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ | |
20 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ | |
21 | -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \ | |
22 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \ | |
fe883092 BB |
23 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \ |
24 | -o -name '*.order' -o -name '*.markers' \) \ | |
c5f70460 BB |
25 | -type f -print | xargs $(RM) |
26 | ||
86933a6e | 27 | if CONFIG_KERNEL |
c5f70460 | 28 | install-data-local: |
f4f9cd75 BB |
29 | destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \ |
30 | instdest=$(DESTDIR)/${prefix}/src/$$destname; \ | |
5c3c70ad | 31 | echo "${SPL_META_VERSION}" >$$instdest/spl.release; \ |
2e0e7e69 | 32 | for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \ |
39a3d2a4 BB |
33 | $(INSTALL) -D $$instfile $$instdest/$$instfile; \ |
34 | done | |
86933a6e | 35 | endif |
c5f70460 BB |
36 | |
37 | ctags: | |
38 | $(RM) $(top_srcdir)/tags | |
39 | find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags | |
40 | ||
41 | etags: | |
42 | $(RM) $(top_srcdir)/TAGS | |
43 | find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a | |
44 | ||
45 | tags: ctags etags | |
46 | ||
86933a6e BB |
47 | srpm-modules: |
48 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common | |
49 | ||
50 | srpm-utils: | |
51 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common | |
52 | ||
53 | srpm: srpm-modules srpm-utils | |
54 | ||
55 | rpm-modules: srpm-modules | |
56 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common | |
57 | ||
58 | rpm-utils: srpm-utils | |
59 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common | |
60 | ||
61 | rpm-modules: srpm-modules | |
62 | ||
63 | rpm-utils: srpm-utils | |
64 | ||
65 | rpm: rpm-modules rpm-utils |