Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Copyright 2013 Bill Allombert <[email protected]>
3 #
4
5 export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s)
6 export FORCE_SOURCE_DATE = 1
7 export LC_ALL = C
8
9 build-indep-stamp:
10 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
11 echo 'SetPackagePath("AutPGrp","."); LoadPackage("SmallGrp"); Read("tst/testall.g");' \
12 | gap -q -R -A | tee debian/gap.tst
13 grep -q "^#I No errors detected while testing" debian/gap.tst
14 endif
15 echo 'SetPackagePath("AutPGrp","."); PushOptions(rec(relativePath:=true)); Read("makedoc.g");' \
16 | gap -q -R -A && touch build-indep-stamp
17 build-indep: build-indep-stamp
18 build-arch:
19 build: build-indep
20
21 clean:
22 dh_testdir
23 dh_testroot
24 make -C doc clean
25 rm -f build-indep-stamp
26 rm -f debian/gap.tst
27 dh_clean
28
29 install: build
30 dh_testdir
31 dh_testroot
32 dh_prep
33 dh_installdirs
34 dh_install *.g gap usr/share/gap/pkg/AutPGrp
35 make -C doc install DESTDIR=../debian/gap-autpgrp
36 binary-arch: build-arch
37 binary-indep: build-indep install
38 dh_testdir
39 dh_testroot
40 dh_installdocs README
41 dh_installexamples
42 dh_installchangelogs CHANGES.md
43 dh_link
44 dh_compress
45 dh_fixperms
46 dh_installdeb
47 dh_gencontrol
48 dh_md5sums
49 dh_builddeb
50
51 binary: binary-indep binary-arch
52 .PHONY: build clean binary-indep binary-arch binary install configure