]> git.proxmox.com Git - mirror_zfs-debian.git/blob - Makefile.am
Merge branch 'dracut'
[mirror_zfs-debian.git] / Makefile.am
1 include $(top_srcdir)/config/rpm.am
2 include $(top_srcdir)/config/deb.am
3 include $(top_srcdir)/config/tgz.am
4
5 if CONFIG_USER
6 USER_DIR = dracut etc man scripts lib cmd
7 endif
8 if CONFIG_KERNEL
9 KERNEL_DIR = module
10 endif
11 SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include
12
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
18
19 noinst_HEADERS = zfs_config.h
20
21 distclean-local::
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)
32
33 if CONFIG_KERNEL
34 install-data-local:
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; \
40 done
41 endif
42
43 ctags:
44 $(RM) $(top_srcdir)/tags
45 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
46
47 etags:
48 $(RM) $(top_srcdir)/TAGS
49 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
50
51 tags: ctags etags
52
53 pkg: @DEFAULT_PACKAGE@
54 pkg-modules: @DEFAULT_PACKAGE@-modules
55 pkg-utils: @DEFAULT_PACKAGE@-utils