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 -type f -print | xargs $(RM)
28 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
29 instdest=$(DESTDIR)/${prefix}/src/$$destname; \
30 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
31 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
32 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
37 $(RM) $(top_srcdir)/tags
38 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
41 $(RM) $(top_srcdir)/TAGS
42 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
47 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
50 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
52 srpm: srpm-modules srpm-utils
54 rpm-modules: srpm-modules
55 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
58 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
60 rpm-modules: srpm-modules
64 rpm: rpm-modules rpm-utils