Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Copyright 2018 Bill Allombert <[email protected]>
3
4 export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s)
5 export FORCE_SOURCE_DATE = 1
6 export LC_ALL = C
7
8 build-indep-stamp:
9 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
10 echo 'SetPackagePath("PrimGrp","."); Read("tst/testall.g");' \
11 | gap -q -R -A | tee debian/gap.tst
12 grep -q "^#I No errors detected while testing" debian/gap.tst
13 endif
14 env SOURCE_DATE_EPOCH=`env TZ=C date -d "2025/12/26" +"%s"` \
15 echo 'SetPackagePath("PrimGrp","."); 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 data lib usr/share/gap/pkg/PrimGrp
35 find debian/gap-primgrp/usr/share/gap/pkg/PrimGrp/data -type f -exec gunzip --no-name '{}' \;
36 find debian/gap-primgrp/usr/share/gap/pkg/PrimGrp/data -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
37 make -C doc install DESTDIR=../debian/gap-primgrp
38 binary-arch: build-arch
39 binary-indep: build-indep install
40 dh_testdir
41 dh_testroot
42 dh_installdocs README.md
43 dh_installexamples
44 dh_installchangelogs CHANGES.md
45 dh_link
46 dh_compress
47 dh_fixperms
48 dh_installdeb
49 dh_gencontrol
50 dh_md5sums
51 dh_builddeb
52
53 binary: binary-indep binary-arch
54 .PHONY: build clean binary-indep binary-arch binary install configure