Codebase list cciss-vol-status / ffc7031
Switch to minimal rules file This bumps debhelper compat to 8. Christian Hofstaedtler 12 years ago
3 changed file(s) with 8 addition(s) and 96 deletion(s). Raw diff Collapse all Expand all
11 Section: admin
22 Priority: extra
33 Maintainer: Christian Hofstaedtler <christian@hofstaedtler.name>
4 Build-Depends: debhelper (>= 5), autotools-dev, autoconf, automake1.11
4 Build-Depends: debhelper (>= 8), autotools-dev, autoconf, automake1.11
55 Build-Conflicts: autoconf2.13, automake1.4
66 Standards-Version: 3.9.2
77 Homepage: http://cciss.sourceforge.net/
00 #!/usr/bin/make -f
11 # -*- makefile -*-
2 # Sample debian/rules that uses debhelper.
3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
72
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
3 %:
4 dh $@ --with autotools_dev
105
6 override_dh_auto_configure:
7 AUTOMAKE=automake-1.11 autoreconf -i
8 dh_auto_configure
119
12 # These are used for cross-compiling and for saving the configure script
13 # from having to guess our platform (since we know it already)
14 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
17 confflags=
18 # FOR AUTOCONF 2.52 AND NEWER ONLY
19 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
20 confflags += --build $(DEB_HOST_GNU_TYPE)
21 else
22 confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
23 endif
24
25 configure-stamp:
26 dh_testdir
27
28 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
29 cp -f /usr/share/misc/config.sub config.sub
30 endif
31 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
32 cp -f /usr/share/misc/config.guess config.guess
33 endif
34
35 AUTOMAKE=automake-1.11 autoreconf -i
36
37 ./configure $(confflags) \
38 --prefix=/usr --mandir=\$${prefix}/share/man \
39 --infodir=\$${prefix}/share/info \
40 CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
41
42 touch $@
43
44 build: build-stamp
45 build-stamp: configure-stamp
46 dh_testdir
47
48 $(MAKE)
49
50 touch $@
51
52 clean:
53 dh_testdir
54 dh_testroot
55 rm -f build-stamp configure-stamp
56
57 [ ! -f Makefile ] || $(MAKE) distclean
58 rm -f config.sub config.guess configure config.log
59 rm -fr autom4te.cache
60
61 rm -f Makefile.in aclocal.m4
62 rm -f Makefile
63 rm -f depcomp install-sh missing config.h.in
64
65 dh_clean
66
67 install: build
68 dh_testdir
69 dh_testroot
70 dh_clean -k
71 dh_installdirs
72
73 $(MAKE) DESTDIR=$(CURDIR)/debian/cciss-vol-status install
74
75
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
79
80 # Build architecture-dependent files here.
81 binary-arch: build install
82 dh_testdir
83 dh_testroot
84 dh_installchangelogs ChangeLog
10 override_dh_installdocs:
8511 dh_installdocs -XREADME
86 dh_installexamples
87 dh_installman
88 dh_link
89 dh_strip
90 dh_compress
91 dh_fixperms
92 dh_installdeb
93 dh_shlibdeps
94 dh_gencontrol
95 dh_md5sums
96 dh_builddeb
97
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install