Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 53 lines (44 sloc) 1.626 kB
86933a6 @behlendorf Simplify rpm build rules, added config/rpm.am.
behlendorf authored
1 include $(top_srcdir)/config/rpm.am
81c3a7b Pushing spl changes for zpl linux support.
Anand Mitra authored
2 include ${top_srcdir}/config/deb.am
3 include ${top_srcdir}/config/tgz.am
86933a6 @behlendorf Simplify rpm build rules, added config/rpm.am.
behlendorf authored
4
5 if CONFIG_USER
6 USER_DIR = lib cmd scripts
7 endif
8 if CONFIG_KERNEL
9 KERNEL_DIR = module include
10 endif
11 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
c5f7046 @behlendorf Build system and packaging (RPM support)
behlendorf authored
12
f1ca4da Initial commit. All spl source written up to this point wrapped
behlendo authored
13 AUTOMAKE_OPTIONS = foreign dist-zip
81c3a7b Pushing spl changes for zpl linux support.
Anand Mitra authored
14 EXTRA_DIST = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
15 EXTRA_DIST += config/rpm.am config/deb.am config/tgz.am
0cbaeb1 @behlendorf Allow spl_config.h to be included by dependant packages
behlendorf authored
16 noinst_HEADERS = spl_config.h spl_unconfig.h
f1ca4da Initial commit. All spl source written up to this point wrapped
behlendo authored
17
c5f7046 @behlendorf Build system and packaging (RPM support)
behlendorf authored
18 distclean-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' \
fe88309 @behlendorf Ensure *.order and *.markers build products are removed by distclean …
behlendorf authored
26 -o -name 'Makefile' -o -name '$(LINUX_SYMBOLS)' \
27 -o -name '*.order' -o -name '*.markers' \) \
c5f7046 @behlendorf Build system and packaging (RPM support)
behlendorf authored
28 -type f -print | xargs $(RM)
29
86933a6 @behlendorf Simplify rpm build rules, added config/rpm.am.
behlendorf authored
30 if CONFIG_KERNEL
c5f7046 @behlendorf Build system and packaging (RPM support)
behlendorf authored
31 install-data-local:
f4f9cd7 @behlendorf Install spl-devel products in /usr/src/spl-SPL_VERSION/LINUX_VERSION/
behlendorf authored
32 destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
33 instdest=$(DESTDIR)/${prefix}/src/$$destname; \
5c3c70a @behlendorf Add spl.release to spl-devel to simply dependent package version check.
behlendorf authored
34 echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
2e0e7e6 @behlendorf Packaging improvements for RHEL and SLES (part 2)
behlendorf authored
35 for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
39a3d2a @behlendorf Packaging improvements for RHEL and SLES
behlendorf authored
36 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
37 done
86933a6 @behlendorf Simplify rpm build rules, added config/rpm.am.
behlendorf authored
38 endif
c5f7046 @behlendorf Build system and packaging (RPM support)
behlendorf authored
39
40 ctags:
41 $(RM) $(top_srcdir)/tags
42 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
43
44 etags:
45 $(RM) $(top_srcdir)/TAGS
46 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
47
48 tags: ctags etags
49
81c3a7b Pushing spl changes for zpl linux support.
Anand Mitra authored
50 pkg: @DEFAULT_PACKAGE@
51 pkg-modules: @DEFAULT_PACKAGE@-modules
52 pkg-utils: @DEFAULT_PACKAGE@-utils
Something went wrong with that request. Please try again.