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 mkdir -p debian/gaproot/pkg
10 ln -s ../../.. debian/gaproot/pkg/TransGrp
11 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
12 gap -q -l 'debian/gaproot;/usr/share/gap' < tst/testall.g | tee debian/gap.tst
13 grep -q "^#I No errors detected while testing" debian/gap.tst
14 endif
15 make -C doc && touch build-indep-stamp
16 build-indep: build-indep-stamp
17 build-arch:
18 build: build-indep
19
20 clean:
21 dh_testdir
22 dh_testroot
23 make -C doc clean
24 rm -f build-indep-stamp
25 rm -rf debian/gaproot
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/TransGrp
35 find debian/gap-transgrp/usr/share/gap/pkg/TransGrp/data -type f -exec gunzip --no-name '{}' \;
36 find debian/gap-transgrp/usr/share/gap/pkg/TransGrp/data -type f -exec sh -c 'gzip --no-name --best -c {} > {}.gz && rm {}' \;
37 make -C doc install DESTDIR=../debian/gap-transgrp
38 binary-arch: build-arch
39 binary-indep: build-indep install
40 dh_testdir
41 dh_testroot
42 dh_installdocs README.md LICENSE
43 dh_installexamples
44 dh_installchangelogs
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