]> git.proxmox.com Git - mirror_spl.git/blame - Makefile.am
Move vendor check to spl-build.m4
[mirror_spl.git] / Makefile.am
CommitLineData
86933a6e 1include $(top_srcdir)/config/rpm.am
287b2fb1
BB
2include ${top_srcdir}/config/deb.am
3include ${top_srcdir}/config/tgz.am
86933a6e
BB
4
5if CONFIG_USER
6USER_DIR = lib cmd scripts
7endif
8if CONFIG_KERNEL
9KERNEL_DIR = module include
10endif
11SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
c5f70460 12
f1ca4da6 13AUTOMAKE_OPTIONS = foreign dist-zip
287b2fb1
BB
14EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
15EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
16b719f0 16noinst_HEADERS = spl_config.h
f1ca4da6 17
c5f70460
BB
18distclean-local::
19 -$(RM) -R autom4te*.cache
20 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
21 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
22 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
23 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
24 -o -name '.*.rej' -o -name 'aclocal.m4' -o -size 0 \
25 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
fe883092
BB
26 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
27 -o -name '*.order' -o -name '*.markers' \) \
c5f70460
BB
28 -type f -print | xargs $(RM)
29
86933a6e 30if CONFIG_KERNEL
c5f70460 31install-data-local:
f4f9cd75 32 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
099dc9c2 33 instdest=$(DESTDIR)/usr/src/$$destname; \
5c3c70ad 34 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
2e0e7e69 35 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
39a3d2a4
BB
36 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
37 done
86933a6e 38endif
c5f70460
BB
39
40ctags:
41 $(RM) $(top_srcdir)/tags
42 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
43
44etags:
45 $(RM) $(top_srcdir)/TAGS
46 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
47
48tags: ctags etags
49
287b2fb1
BB
50pkg: @DEFAULT_PACKAGE@
51pkg-modules: @DEFAULT_PACKAGE@-modules
52pkg-utils: @DEFAULT_PACKAGE@-utils