Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Copyright 2015 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/RadiRoot
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 "^########" debian/gap.tst
14 endif
15 env SOURCE_DATE_EPOCH=`env TZ=C date -d "2022/03/01" +"%s"` \
16 make -C doc && 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 -rf debian/gaproot
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 lib usr/share/gap/pkg/RadiRoot
36 make -C doc install DESTDIR=../debian/gap-radiroot
37 binary-arch: build-arch
38 binary-indep: build-indep install
39 dh_testdir
40 dh_testroot
41 dh_installdocs README
42 dh_installexamples
43 dh_installchangelogs CHANGES
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