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
|
#!/usr/bin/make -f
SHELL+= -e
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-include /usr/share/dpkg/buildtools.mk
D := $(CURDIR)/debian/rblcheck
CFLAGS ?= -O2 -g
build: build-stamp
build-stamp:
dh_testdir
$(CC) $(CFLAGS) -o rblcheck rblcheck.c $(LDFLAGS) -lresolv
perl -pe '/ (id|linkend)=/ and s/_/\1-/g' < docs/rblcheck.sgml > docs/rblcheck.tmp.sgml
# cd docs && docbook2html rblcheck.tmp.sgml -V nochunks && mv rblcheck.tmp.html rblcheck.html
cd docs && docbook2txt rblcheck.tmp.sgml && mv rblcheck.tmp.txt rblcheck.txt
touch $@
clean:
dh_testdir
rm -f build-stamp
rm -f rblcheck docs/rblcheck.txt docs/rblcheck.html docs/rblcheck.tmp.*
dh_clean
binary-arch: build
dh_testroot
dh_testdir
dh_prep
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_md5sums
dh_builddeb
binary-indep:
binary: binary-arch
build-arch: build
build-indep: build
.PHONY: build clean binary-arch binary-indep binary
|