]> granicus.if.org Git - zfs/blob - Makefile.am
Remove deadcode caused by removal of format1 arg
[zfs] / Makefile.am
1 include $(top_srcdir)/config/rpm.am
2
3 if CONFIG_USER
4 USER_DIR = lib cmd scripts
5 endif
6 if CONFIG_KERNEL
7 KERNEL_DIR = module include
8 endif
9 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
10
11 AUTOMAKE_OPTIONS = foreign dist-zip
12 EXTRA_DIST = autogen.sh spl.spec.in config/config.awk META DISCLAIMER
13 noinst_HEADERS = spl_config.h
14
15 distclean-local::
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)
26
27 if CONFIG_KERNEL
28 install-data-local:
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; \
34         done
35 endif
36
37 ctags:
38         $(RM) $(top_srcdir)/tags
39         find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
40
41 etags:
42         $(RM) $(top_srcdir)/TAGS
43         find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
44
45 tags: ctags etags
46
47 srpm-modules:
48         $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
49
50 srpm-utils:
51         $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
52
53 srpm: srpm-modules srpm-utils
54
55 rpm-modules: srpm-modules
56         $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
57
58 rpm-utils: srpm-utils
59         $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
60
61 rpm-modules: srpm-modules
62
63 rpm-utils: srpm-utils
64
65 rpm: rpm-modules rpm-utils