]> git.proxmox.com Git - mirror_spl.git/blame_incremental - Makefile.am
Expand SEM() outside init_rwsem and directly call __init_rwsem().
[mirror_spl.git] / Makefile.am
... / ...
CommitLineData
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)
10
11AUTOMAKE_OPTIONS = foreign dist-zip
12EXTRA_DIST = autogen.sh spl.spec.in META DISCLAIMER
13noinst_HEADERS = spl_config.h spl_unconfig.h
14
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' \
23 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \) \
24 -type f -print | xargs $(RM)
25
26if CONFIG_KERNEL
27install-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
34endif
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
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