File: rules

package info (click to toggle)
gap-grape 4r7%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 716 kB
  • ctags: 60
  • sloc: sh: 15; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

GAP=/usr/bin/gap

DEB_PKG_VERSION = $(shell dpkg-parsechangelog -S Version)
DEB_BUILD_GAP_PKGINFO_DATE = $(shell sed -n 's|^Date[ ]*:=[ ]*\"\([0-9]*\)/\([0-9]*\)/20\([0-9]*\)\",|20\3-\2-\1|p' PackageInfo.g)

export GAP_CONVERT_DATE = $(shell LC_ALL=C date -u -d $(DEB_BUILD_GAP_PKGINFO_DATE) +"%B %Y (Debian $(DEB_PKG_VERSION))")

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

%:
	dh $@

override_dh_auto_build:
	cd doc && sh make_doc

override_dh_auto_test:
	echo "SetPackagePath(\"grape\",\".\"); LoadPackage(\"grape\"); quit;" | $(GAP) -A -q -T

get-orig-source:
	uscan --no-conf --download-current-version --compression xz --verbose