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