]>
Commit | Line | Data |
---|---|---|
1 | include $(top_srcdir)/config/rpm.am | |
2 | include $(top_srcdir)/config/deb.am | |
3 | include $(top_srcdir)/config/tgz.am | |
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) | |
12 | ||
13 | AUTOMAKE_OPTIONS = foreign | |
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 | |
16 | noinst_HEADERS = spl_config.h | |
17 | ||
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' \ | |
26 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \ | |
27 | -o -name '*.order' -o -name '*.markers' \) \ | |
28 | -type f -print | xargs $(RM) | |
29 | ||
30 | if CONFIG_KERNEL | |
31 | install-data-local: | |
32 | destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \ | |
33 | instdest=$(DESTDIR)/usr/src/$$destname; \ | |
34 | echo "$(SPL_META_VERSION)" >$$instdest/spl.release; \ | |
35 | for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \ | |
36 | $(INSTALL) -D $$instfile $$instdest/$$instfile; \ | |
37 | done | |
38 | endif | |
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 | ||
50 | pkg: @DEFAULT_PACKAGE@ | |
51 | pkg-modules: @DEFAULT_PACKAGE@-modules | |
52 | pkg-utils: @DEFAULT_PACKAGE@-utils |