File: rules

package info (click to toggle)
rblcheck 20020316-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 520 kB
  • ctags: 39
  • sloc: ansic: 401; makefile: 138; sh: 39; awk: 27; perl: 12
file content (49 lines) | stat: -rwxr-xr-x 898 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
#!/usr/bin/make -f
SHELL+= -e

#export DH_VERBOSE=1

D := $(CURDIR)/debian/rblcheck

CFLAGS ?= -O2 -g

build: build-stamp
build-stamp:
	dh_testdir
	$(CC) $(CFLAGS) -o rblcheck rblcheck.c -lresolv
	cd docs && sgmltools -b lynx rblcheck.sgml
#	cd docs && sgmltools -b onehtml rblcheck.sgml
	touch $@

clean:
	dh_testroot
	dh_testdir
	rm -f build-stamp
	rm -f rblcheck docs/rblcheck.txt docs/rblcheck.html
	dh_clean

binary-arch: build
	dh_testroot
	dh_testdir
	dh_clean -k

	dh_installdirs usr/bin
	cp rblcheck $D/usr/bin/
	dh_installdocs README NEWS docs/rblcheck.txt # docs/rblcheck.html
	dh_installexamples
	rm -rf $D/usr/share/doc/rblcheck/examples/*/CVS/
	dh_installman rblcheck.1
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

binary-indep:

binary: binary-arch

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