]> git.proxmox.com Git - mirror_spl-debian.git/blob - Makefile.am
53d4876fcaf74440b2133e02c69248c05e721691
[mirror_spl-debian.git] / 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 META DISCLAIMER
13 noinst_HEADERS = spl_config.h spl_unconfig.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 -type f -print | xargs $(RM)
25
26 if CONFIG_KERNEL
27 install-data-local:
28 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
29 instdest=$(DESTDIR)/${prefix}/src/$$destname; \
30 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
31 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
32 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
33 done
34 endif
35
36 ctags:
37 $(RM) $(top_srcdir)/tags
38 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
39
40 etags:
41 $(RM) $(top_srcdir)/TAGS
42 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
43
44 tags: ctags etags
45
46 srpm-modules:
47 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
48
49 srpm-utils:
50 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
51
52 srpm: srpm-modules srpm-utils
53
54 rpm-modules: srpm-modules
55 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
56
57 rpm-utils: srpm-utils
58 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
59
60 rpm-modules: srpm-modules
61
62 rpm-utils: srpm-utils
63
64 rpm: rpm-modules rpm-utils