File: rules

package info (click to toggle)
cdcd 0.6.5-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,024 kB
  • ctags: 439
  • sloc: ansic: 4,841; sh: 3,059; makefile: 58
file content (62 lines) | stat: -rwxr-xr-x 1,233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f

# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_OPTIONS
export DH_COMPAT=4

CC = gcc
CFLAGS = -g -Wall

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif


clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) distclean
	dh_clean

build: build-stamp

build-stamp:
	dh_testdir
	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=/usr/share/man \
	                               --infodir=/usr/share/info
	$(MAKE)
	touch build-stamp

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) prefix=$$(pwd)/debian/cdcd/usr mandir=$$(pwd)/debian/cdcd/usr/share/man \
	        infodir=$$(pwd)/debian/cdcd/usr/share/info install

	dh_strip
	dh_installman
	dh_installinfo
	dh_installdocs README NEWS AUTHORS
	dh_installchangelogs ChangeLog
	dh_installdeb	
	dh_fixperms
	dh_compress
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean build