Codebase list squidview / 7801321
rewrite debian/rules to make use of dh, build-depend on dpkg >= 1.16.1 Willi Mann 11 years ago
2 changed file(s) with 13 addition(s) and 71 deletion(s). Raw diff Collapse all Expand all
11 Section: admin
22 Priority: optional
33 Maintainer: Willi Mann <willi@debian.org>
4 Build-Depends: debhelper (>> 9.0.0), libncurses5-dev
4 Build-Depends: debhelper (>> 9.0.0), libncurses5-dev, dpkg-dev (>= 1.16.1~)
55 Standards-Version: 3.9.3
66 Homepage: http://www.rillion.net/squidview/
77
00 #!/usr/bin/make -f
1 # Sample debian/rules that uses debhelper.
2 # GNU copyright 1997 to 1999 by Joey Hess.
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
61
72 # These are used for cross-compiling and for saving the configure script
83 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
4 #DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5 #DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
116
12 #CXX = g++
13 CXXFLAGS = -Wall -g -DDEBIANIZED
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/buildflags.mk
149
15 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16 CXXFLAGS += -O0
17 else
18 CXXFLAGS += -O2
19 endif
10 CXXFLAGS += -Wall -g -DDEBIANIZED
2011
21 export CXX CXXFLAGS
12 %:
13 dh $@
2214
23 config.status: configure
24 dh_testdir
25 # configure the package.
26 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/doc
27
28
29 build: build-stamp
30
31 build-stamp: config.status
32 dh_testdir
33
34 # compile the package.
35 $(MAKE)
36
37 touch build-stamp
38
39 clean:
40 dh_testdir
41 dh_testroot
42 rm -f build-stamp
43
44 # clean up after the build process.
45 [ ! -f Makefile ] || $(MAKE) distclean
46
47 dh_clean
48
49 install: build
50 dh_testdir
51 dh_testroot
52 dh_clean -k
53 dh_installdirs
54
55 # install the package into debian/squidview.
56 $(MAKE) install prefix=$(CURDIR)/debian/squidview/usr
57
15 override_dh_install:
16 dh_install
5817 # Delete the examples from /usr/share/doc/squidview
5918 for i in users aliases words example.log; do \
6019 rm -f $(CURDIR)/debian/squidview/usr/share/doc/squidview/$$i; \
6120 done
6221
22 override_dh_installchangelogs:
23 dh_installchangelogs ChangeLog
6324
64 # Build architecture-independent files here.
65 binary-indep: build install
66 # We have nothing to do by default.
67
68 # Build architecture-dependent files here.
69 binary-arch: build install
70 dh_testdir
71 dh_testroot
72 dh_installdocs
73 dh_installexamples
74 dh_installchangelogs ChangeLog
75 dh_strip
25 override_dh_compress:
7626 dh_compress -XHOWTO
77 dh_fixperms
78 dh_shlibdeps
79 dh_gencontrol
80 dh_md5sums
81 dh_builddeb
82
83 binary: binary-indep binary-arch
84 .PHONY: build clean binary-indep binary-arch binary install