1 include $(top_srcdir)/config/rpm.am
2 include $(top_srcdir)/config/deb.am
3 include $(top_srcdir)/config/tgz.am
4 include $(top_srcdir)/config/arch.am
7 USER_DIR = lib cmd scripts
10 KERNEL_DIR = module include
12 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
14 AUTOMAKE_OPTIONS = foreign
15 EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
16 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
17 EXTRA_DIST += dkms.postinst copy-builtin
18 noinst_HEADERS = spl_config.h spl.release
21 -$(RM) -R autom4te*.cache
22 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
23 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
24 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
25 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
26 -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \
27 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
28 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
29 -o -name '*.order' -o -name '*.markers' \) \
30 -type f -print | xargs $(RM)
34 release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
35 instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
36 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
37 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
42 $(RM) $(top_srcdir)/tags
43 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
46 $(RM) $(top_srcdir)/TAGS
47 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
51 pkg: @DEFAULT_PACKAGE@
52 pkg-modules: @DEFAULT_PACKAGE@-modules
53 pkg-utils: @DEFAULT_PACKAGE@-utils