Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/pkg-info.mk
3
4 GAP=/usr/bin/gap
5
6 default:
7 @uscan --no-conf --dehs --report || true
8
9 %:
10 dh $@
11
12 override_dh_auto_build:
13 #cp -vp doc/toric.xml doc/Toric.xml
14 cp -vp doc/title.xml doc/Title.xml
15 cat debian/makedoc.g | $(GAP) -A -q -T
16 mv -v doc/Title.xml doc/title.xml
17
18 testall.log:
19 echo "\
20 SetPackagePath(\"toric\",\".\"); \
21 LoadPackage(\"toric\"); \
22 QUIT_GAP(TestDirectory(\"tst\",rec(testOptions:=rec(compareFunction:=\"uptowhitespace\")))); \
23 " | $(GAP) -A -q -T | tee $@
24
25 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
26 override_dh_auto_test: testall.log
27 grep '^#I No errors detected' $<
28 endif
29
30 override_dh_installchangelogs:
31 dh_installchangelogs --keep CHANGES