#!/usr/bin/make -f # Copyright 2020 Joachim Zobel export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) export FORCE_SOURCE_DATE = 1 export LC_ALL = C ifneq (,$(filter check,$(DEB_BUILD_OPTIONS))) execute_after_dh_auto_test: echo 'SetPackagePath("ANUPQ","$(CURDIR)"); Read("tst/testinstall.g");' \ | gap -q | tee debian/gap.tst grep -q "^#I No errors detected while testing" debian/gap.tst endif override_dh_auto_configure: dh_auto_configure -- --program-prefix=anu- --with-gaproot=/usr/share/gap execute_after_dh_auto_build: make -C doc override_dh_install: dh_install *.g examples gap tst usr/share/gap/pkg/nq make -C doc install DESTDIR=../debian/gap-nq override_dh_installdocs: dh_installdocs README.md override_dh_installchangelogs: dh_installchangelogs CHANGES clean: dh_testdir dh_testroot dh_auto_clean make -C doc clean rm -rf debian/gaproot rm -f debian/gap.tst rm -f examples/Makefile dh_clean dh_autoreconf_clean %: dh $@ .PHONY: execute_after_dh_auto_test override_dh_auto_configure override_dh_install override_dh_installdocs override_dh_installchangelogs clean