Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Copyright 2013 Bill Allombert <[email protected]>
3 # Released under the same term as GAP
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("Polycyclic","."); 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 env SOURCE_DATE_EPOCH=`env TZ=C date -d "2026/04/09" +"%s"` \
16 echo 'SetPackagePath("Polycyclic","."); PushOptions(rec(relativePath:=true)); Read("makedoc.g");' \
17 | gap -q -R -A && touch build-indep-stamp
18 build-indep: build-indep-stamp
19 build-arch:
20 build: build-indep
21
22 clean:
23 dh_testdir
24 dh_testroot
25 make -C doc clean
26 rm -f build-indep-stamp
27 rm -f debian/gap.tst
28 dh_clean
29
30 install: build
31 dh_testdir
32 dh_testroot
33 dh_prep
34 dh_installdirs
35 dh_install *.g gap usr/share/gap/pkg/Polycyclic
36 make -C doc install DESTDIR=../debian/gap-polycyclic
37 binary-arch: build-arch
38 binary-indep: build-indep install
39 dh_testdir
40 dh_testroot
41 dh_installdocs README.md
42 dh_installexamples
43 dh_installchangelogs CHANGES.md
44 dh_link
45 dh_compress
46 dh_fixperms
47 dh_installdeb
48 dh_gencontrol
49 dh_md5sums
50 dh_builddeb
51
52 binary: binary-indep binary-arch
53 .PHONY: build clean binary-indep binary-arch binary install configure