]>
Commit | Line | Data |
---|---|---|
83918aeb JE |
1 | |
2 | ACLOCAL_AMFLAGS = -I config | |
3 | ||
86933a6e | 4 | include $(top_srcdir)/config/rpm.am |
a7958f7e BB |
5 | include $(top_srcdir)/config/deb.am |
6 | include $(top_srcdir)/config/tgz.am | |
86933a6e | 7 | |
493972c8 | 8 | SUBDIRS = include rpm |
86933a6e | 9 | if CONFIG_USER |
40748209 | 10 | SUBDIRS += lib cmd man scripts |
86933a6e BB |
11 | endif |
12 | if CONFIG_KERNEL | |
d1142fbf | 13 | SUBDIRS += module |
4a6d8d2c BB |
14 | |
15 | extradir = /usr/src/spl-$(VERSION) | |
16 | extra_HEADERS = spl.release.in spl_config.h.in | |
17 | ||
18 | kerneldir = /usr/src/spl-$(VERSION)/$(LINUX_VERSION) | |
19 | nodist_kernel_HEADERS = spl.release spl_config.h module/$(LINUX_SYMBOLS) | |
86933a6e | 20 | endif |
c5f70460 | 21 | |
d8a1b739 | 22 | AUTOMAKE_OPTIONS = foreign |
493972c8 | 23 | EXTRA_DIST = autogen.sh META DISCLAIMER copy-builtin |
287b2fb1 | 24 | EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am |
f1ca4da6 | 25 | |
c5f70460 BB |
26 | distclean-local:: |
27 | -$(RM) -R autom4te*.cache | |
28 | -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \ | |
29 | -o -name .pc -o -name .hg -o -name .git \) -prune -o \ | |
30 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ | |
31 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ | |
32 | -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \ | |
33 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \ | |
fe883092 BB |
34 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \ |
35 | -o -name '*.order' -o -name '*.markers' \) \ | |
c5f70460 BB |
36 | -type f -print | xargs $(RM) |
37 | ||
c14183ad BB |
38 | dist-hook: |
39 | sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \ | |
40 | $(distdir)/META | |
41 | ||
c5f70460 BB |
42 | ctags: |
43 | $(RM) $(top_srcdir)/tags | |
44 | find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags | |
45 | ||
46 | etags: | |
47 | $(RM) $(top_srcdir)/TAGS | |
48 | find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a | |
49 | ||
50 | tags: ctags etags | |
51 | ||
287b2fb1 | 52 | pkg: @DEFAULT_PACKAGE@ |
493972c8 | 53 | pkg-kmod: @DEFAULT_PACKAGE@-kmod |
287b2fb1 | 54 | pkg-utils: @DEFAULT_PACKAGE@-utils |