| 1 |
#!/usr/bin/make -f |
| 2 |
# Copyright 2016 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 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 10 |
echo 'SetPackagePath("TomLib","."); Read("tst/testall.g");' \ |
| 11 |
| gap -q -R -A | tee debian/gap.tst |
| 12 |
grep -q "^#I No errors detected while testing" debian/gap.tst |
| 13 |
endif |
| 14 |
echo 'SetPackagePath("TomLib","."); PushOptions(rec(relativePath:=true)); Read("makedoc.g");' \ |
| 15 |
| gap -q -R -A && touch build-indep-stamp |
| 16 |
make -C doc clean |
| 17 |
rm -f doc/tomlib.brf doc/tomlib.out |
| 18 |
touch build-indep-stamp |
| 19 |
|
| 20 |
build-indep: build-indep-stamp |
| 21 |
build-arch: |
| 22 |
build: build-indep |
| 23 |
|
| 24 |
clean: |
| 25 |
dh_testdir |
| 26 |
dh_testroot |
| 27 |
make -C doc spotless |
| 28 |
rm -f doc/bib.xml.bib doc/mathjax doc/manual.lab |
| 29 |
rm -f build-indep-stamp |
| 30 |
rm -f debian/gap.tst |
| 31 |
rm -f doc/_entities.xml doc/manual.js doc/title.xml |
| 32 |
rm -f doc/chooser.html doc/dark.css doc/manual.css |
| 33 |
dh_clean |
| 34 |
|
| 35 |
install: build |
| 36 |
dh_testdir |
| 37 |
dh_testroot |
| 38 |
dh_prep |
| 39 |
dh_installdirs |
| 40 |
dh_install *.g data gap doc usr/share/gap/pkg/TomLib |
| 41 |
gzip --no-name -r --best debian/gap-table-of-marks/usr/share/gap/pkg/TomLib/data/ |
| 42 |
|
| 43 |
binary-arch: build-arch |
| 44 |
binary-indep: build-indep install |
| 45 |
dh_testdir |
| 46 |
dh_testroot |
| 47 |
dh_installdocs README.md |
| 48 |
dh_installexamples |
| 49 |
dh_installchangelogs |
| 50 |
dh_link |
| 51 |
dh_compress |
| 52 |
dh_fixperms |
| 53 |
dh_installdeb |
| 54 |
dh_gencontrol |
| 55 |
dh_md5sums |
| 56 |
dh_builddeb |
| 57 |
|
| 58 |
binary: binary-indep binary-arch |
| 59 |
.PHONY: build clean binary-indep binary-arch binary install configure |