]>
Commit | Line | Data |
---|---|---|
c9c0d073 | 1 | include $(top_srcdir)/config/rpm.am |
6283f55e BB |
2 | include $(top_srcdir)/config/deb.am |
3 | include $(top_srcdir)/config/tgz.am | |
c9c0d073 BB |
4 | |
5 | if CONFIG_USER | |
ae26d046 | 6 | USER_DIR = dracut etc man scripts lib cmd |
c9c0d073 BB |
7 | endif |
8 | if CONFIG_KERNEL | |
9 | KERNEL_DIR = module | |
10 | endif | |
6283f55e | 11 | SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include |
c9c0d073 | 12 | |
8160dd9a | 13 | AUTOMAKE_OPTIONS = foreign |
c9c0d073 BB |
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 | |
1ae93745 | 16 | EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown |
c9c0d073 BB |
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' \ | |
1ae93745 | 27 | -o -name '.*.rej' -o -name '.script-config' -o -size 0 \ |
c9c0d073 BB |
28 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \ |
29 | -o -name 'Makefile' -o -name 'Module.symvers' \ | |
1ae93745 | 30 | -o -name '*.order' -o -name '*.markers' \) \ |
c9c0d073 BB |
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; \ | |
6283f55e | 37 | echo "$(ZFS_META_VERSION)" >$$instdest/zfs.release; \ |
c9c0d073 BB |
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 |