]>
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' \ | |
2e0e7e69 | 23 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \) \ |
c5f70460 BB |
24 | -type f -print | xargs $(RM) |
25 | ||
86933a6e | 26 | if CONFIG_KERNEL |
c5f70460 | 27 | install-data-local: |
f4f9cd75 BB |
28 | destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \ |
29 | instdest=$(DESTDIR)/${prefix}/src/$$destname; \ | |
5c3c70ad | 30 | echo "${SPL_META_VERSION}" >$$instdest/spl.release; \ |
2e0e7e69 | 31 | for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \ |
39a3d2a4 BB |
32 | $(INSTALL) -D $$instfile $$instdest/$$instfile; \ |
33 | done | |
86933a6e | 34 | endif |
c5f70460 BB |
35 | |
36 | ctags: | |
37 | $(RM) $(top_srcdir)/tags | |
38 | find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags | |
39 | ||
40 | etags: | |
41 | $(RM) $(top_srcdir)/TAGS | |
42 | find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a | |
43 | ||
44 | tags: ctags etags | |
45 | ||
86933a6e BB |
46 | srpm-modules: |
47 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common | |
48 | ||
49 | srpm-utils: | |
50 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common | |
51 | ||
52 | srpm: srpm-modules srpm-utils | |
53 | ||
54 | rpm-modules: srpm-modules | |
55 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common | |
56 | ||
57 | rpm-utils: srpm-utils | |
58 | $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common | |
59 | ||
60 | rpm-modules: srpm-modules | |
61 | ||
62 | rpm-utils: srpm-utils | |
63 | ||
64 | rpm: rpm-modules rpm-utils |