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("SmallGrp","."); 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 "2024/07/04" +"%s"` \
15 echo 'SetPackagePath("SmallGrp","."); 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 -p gap-smallgrp gap *.g id2 small2 usr/share/gap/pkg/SmallGrp
35 dh_install -p gap-smallgrp-extra id[13-9]* small[13-9]* usr/share/gap/pkg/SmallGrp
36 find debian/gap-smallgrp/usr/share/gap/pkg/SmallGrp/small* -type f -exec gunzip --no-name '{}' \;
37 find debian/gap-smallgrp/usr/share/gap/pkg/SmallGrp/small* -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
38 find debian/gap-smallgrp/usr/share/gap/pkg/SmallGrp/id* -type f -exec gunzip --no-name '{}' \;
39 find debian/gap-smallgrp/usr/share/gap/pkg/SmallGrp/id* -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
40 find debian/gap-smallgrp-extra/usr/share/gap/pkg/SmallGrp/small* -type f -exec gunzip --no-name '{}' \;
41 find debian/gap-smallgrp-extra/usr/share/gap/pkg/SmallGrp/small* -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
42 find debian/gap-smallgrp-extra/usr/share/gap/pkg/SmallGrp/id* -type f -exec gunzip --no-name '{}' \;
43 find debian/gap-smallgrp-extra/usr/share/gap/pkg/SmallGrp/id* -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
44 make -C doc install DESTDIR=../debian/gap-smallgrp
45 binary-arch: build-arch
46 binary-indep: build-indep install
47 dh_testdir
48 dh_testroot
49 dh_installdocs README README.md
50 dh_installexamples
51 dh_installchangelogs CHANGES.md
52 dh_link
53 dh_compress
54 dh_fixperms
55 dh_installdeb
56 dh_gencontrol
57 dh_md5sums
58 dh_builddeb
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install configure