]> git.proxmox.com Git - mirror_spl.git/blame - Makefile.am
Ensure kmem_alloc() and vmem_alloc() never fail
[mirror_spl.git] / Makefile.am
CommitLineData
86933a6e
BB
1include $(top_srcdir)/config/rpm.am
2
3if CONFIG_USER
4USER_DIR = lib cmd scripts
5endif
6if CONFIG_KERNEL
7KERNEL_DIR = module include
8endif
9SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
c5f70460 10
f1ca4da6 11AUTOMAKE_OPTIONS = foreign dist-zip
16b719f0
BB
12EXTRA_DIST = autogen.sh spl.spec.in config/config.awk META DISCLAIMER
13noinst_HEADERS = spl_config.h
f1ca4da6 14
c5f70460
BB
15distclean-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' \
fe883092
BB
23 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
24 -o -name '*.order' -o -name '*.markers' \) \
c5f70460
BB
25 -type f -print | xargs $(RM)
26
86933a6e 27if CONFIG_KERNEL
c5f70460 28install-data-local:
f4f9cd75
BB
29 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
30 instdest=$(DESTDIR)/${prefix}/src/$$destname; \
5c3c70ad 31 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
2e0e7e69 32 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
39a3d2a4
BB
33 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
34 done
86933a6e 35endif
c5f70460
BB
36
37ctags:
38 $(RM) $(top_srcdir)/tags
39 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
40
41etags:
42 $(RM) $(top_srcdir)/TAGS
43 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
44
45tags: ctags etags
46
86933a6e
BB
47srpm-modules:
48 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
49
50srpm-utils:
51 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
52
53srpm: srpm-modules srpm-utils
54
55rpm-modules: srpm-modules
56 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
57
58rpm-utils: srpm-utils
59 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
60
61rpm-modules: srpm-modules
62
63rpm-utils: srpm-utils
64
65rpm: rpm-modules rpm-utils