1 include $(top_srcdir)/config/rpm.am
2 include $(top_srcdir)/config/deb.am
3 include $(top_srcdir)/config/tgz.am
6 USER_DIR = etc man scripts lib cmd
11 SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include
13 AUTOMAKE_OPTIONS = foreign
14 EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in
15 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
16 EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown
17 EXTRA_DIST += OPENSOLARIS.LICENSE ZFS.RELEASE
19 noinst_HEADERS = zfs_config.h
22 -$(RM) -R autom4te*.cache
23 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
24 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
25 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
26 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
27 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
28 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
29 -o -name 'Makefile' -o -name 'Module.symvers' \
30 -o -name '*.order' -o -name '*.markers' \) \
31 -type f -print | xargs $(RM)
35 destname=zfs-$(ZFS_META_VERSION)/$(LINUX_VERSION); \
36 instdest=$(DESTDIR)/usr/src/$$destname; \
37 echo "$(ZFS_META_VERSION)" >$$instdest/zfs.release; \
38 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
39 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
44 $(RM) $(top_srcdir)/tags
45 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
48 $(RM) $(top_srcdir)/TAGS
49 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
53 pkg: @DEFAULT_PACKAGE@
54 pkg-modules: @DEFAULT_PACKAGE@-modules
55 pkg-utils: @DEFAULT_PACKAGE@-utils