]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Makefile.am
SPL 0.6.0-rc11
[FreeBSD/FreeBSD.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 include $(top_srcdir)/config/arch.am
5
6 if CONFIG_USER
7 USER_DIR = lib cmd scripts
8 endif
9 if CONFIG_KERNEL
10 KERNEL_DIR = module include
11 endif
12 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
13
14 AUTOMAKE_OPTIONS = foreign
15 EXTRA_DIST  = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
16 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
17 EXTRA_DIST += dkms.postinst copy-builtin
18 noinst_HEADERS = spl_config.h spl.release
19
20 distclean-local::
21         -$(RM) -R autom4te*.cache
22         -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
23                 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
24                 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
25                 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
26                 -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \
27                 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
28                 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
29                 -o -name '*.order' -o -name '*.markers' \) \
30                 -type f -print | xargs $(RM)
31
32 if CONFIG_KERNEL
33 install-data-local:
34         release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
35         instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
36         for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
37                 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
38         done
39 endif
40
41 ctags:
42         $(RM) $(top_srcdir)/tags
43         find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
44
45 etags:
46         $(RM) $(top_srcdir)/TAGS
47         find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
48
49 tags: ctags etags
50
51 pkg: @DEFAULT_PACKAGE@
52 pkg-modules: @DEFAULT_PACKAGE@-modules
53 pkg-utils: @DEFAULT_PACKAGE@-utils