1 include $(top_srcdir)/config/rpm.am
4 USER_DIR = lib cmd scripts
7 KERNEL_DIR = module include
9 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
11 AUTOMAKE_OPTIONS = foreign dist-zip
12 EXTRA_DIST = autogen.sh spl.spec.in META DISCLAIMER
13 noinst_HEADERS = spl_config.h spl_unconfig.h
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' \
23 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
24 -o -name '*.order' -o -name '*.markers' \) \
25 -type f -print | xargs $(RM)
29 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
30 instdest=$(DESTDIR)/${prefix}/src/$$destname; \
31 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
32 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
33 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
38 $(RM) $(top_srcdir)/tags
39 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
42 $(RM) $(top_srcdir)/TAGS
43 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
48 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
51 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
53 srpm: srpm-modules srpm-utils
55 rpm-modules: srpm-modules
56 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
59 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
61 rpm-modules: srpm-modules
65 rpm: rpm-modules rpm-utils