File: rules

package info (click to toggle)
gap-factint 1.6.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,048 kB
  • sloc: xml: 941; makefile: 24
file content (33 lines) | stat: -rwxr-xr-x 740 bytes parent folder | download | duplicates (4)
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
32
33
#!/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:
	cat debian/makedoc.g | $(GAP) -A -q -T

testall.log:
	echo "\
		SetPackagePath(\"factint\",\".\"); \
		Read(\"tst/testall.g\"); \
		QUIT; \
		" | $(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

DEB_GAP_FACTINT_HDATADIR=$(CURDIR)/debian/gap-factint/usr/share/gap/pkg/factint/tables/brent
override_dh_compress:
	find $(DEB_GAP_FACTINT_HDATADIR) -type f -a -size +2k | xargs gzip --no-name --best
	dh_compress