File: rules

package info (click to toggle)
gap-toric 1.9.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 192 kB
  • sloc: xml: 770; makefile: 23
file content (31 lines) | stat: -rwxr-xr-x 717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

GAP=/usr/bin/gap

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@

override_dh_auto_build:
	cp -vp doc/toric.xml doc/Toric.xml
	cp -vp doc/title.xml doc/Title.xml
	cat debian/makedoc.g | $(GAP) -A -q -T
	mv -v doc/Title.xml doc/title.xml

testall.log:
	echo "\
		SetPackagePath(\"toric\",\".\"); \
		LoadPackage(\"toric\"); \
		QUIT_GAP(TestDirectory(\"tst\",rec(testOptions:=rec(compareFunction:=\"uptowhitespace\")))); \
		" | $(GAP) -A -q -T | tee $@

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test: testall.log
	grep '^#I  No errors detected' $<
endif

override_dh_installchangelogs:
	dh_installchangelogs --keep CHANGES