]>
Commit | Line | Data |
---|---|---|
86933a6e | 1 | include $(top_srcdir)/config/rpm.am |
a7958f7e BB |
2 | include $(top_srcdir)/config/deb.am |
3 | include $(top_srcdir)/config/tgz.am | |
86933a6e | 4 | |
d1142fbf | 5 | SUBDIRS = include |
86933a6e | 6 | if CONFIG_USER |
30196bfd | 7 | SUBDIRS += lib cmd scripts |
86933a6e BB |
8 | endif |
9 | if CONFIG_KERNEL | |
d1142fbf | 10 | SUBDIRS += module |
4a6d8d2c BB |
11 | |
12 | extradir = /usr/src/spl-$(VERSION) | |
13 | extra_HEADERS = spl.release.in spl_config.h.in | |
14 | ||
15 | kerneldir = /usr/src/spl-$(VERSION)/$(LINUX_VERSION) | |
16 | nodist_kernel_HEADERS = spl.release spl_config.h module/$(LINUX_SYMBOLS) | |
86933a6e | 17 | endif |
c5f70460 | 18 | |
d8a1b739 | 19 | AUTOMAKE_OPTIONS = foreign |
287b2fb1 BB |
20 | EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER |
21 | EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am | |
039bae18 | 22 | EXTRA_DIST += dkms.postinst copy-builtin |
f1ca4da6 | 23 | |
c5f70460 BB |
24 | distclean-local:: |
25 | -$(RM) -R autom4te*.cache | |
26 | -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \ | |
27 | -o -name .pc -o -name .hg -o -name .git \) -prune -o \ | |
28 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ | |
29 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ | |
30 | -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \ | |
31 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \ | |
fe883092 BB |
32 | -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \ |
33 | -o -name '*.order' -o -name '*.markers' \) \ | |
c5f70460 BB |
34 | -type f -print | xargs $(RM) |
35 | ||
c5f70460 BB |
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 | ||
287b2fb1 BB |
46 | pkg: @DEFAULT_PACKAGE@ |
47 | pkg-modules: @DEFAULT_PACKAGE@-modules | |
48 | pkg-utils: @DEFAULT_PACKAGE@-utils |