| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
export DH_VERBOSE=1 |
| 5 |
export CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -std=gnu17 |
| 6 |
export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_build: |
| 12 |
CFLAGS="$(CFLAGS) -DEDITLINE" LDLIBS="-ledit" dh_auto_build |
| 13 |
dh_auto_build --sourcedirectory=primes |
| 14 |
$(MAKE) pdf |
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
| 18 |
set -e ; |
| 19 |
$(MAKE) check |
| 20 |
$(MAKE) -C primes check |
| 21 |
else |
| 22 |
: |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_auto_install: |
| 26 |
dh_installdirs usr/bin usr/share/applications |
| 27 |
$(MAKE) m4install DESTDIR=$(CURDIR)/debian/mathomatic prefix=/usr TEXT_DOCS="AUTHORS README.txt" |
| 28 |
$(MAKE) -C primes install DESTDIR=$(CURDIR)/debian/mathomatic-primes prefix=/usr |
| 29 |
dh_install icons/mathomatic.png usr/share/pixmaps |
| 30 |
dh_install icons/mathomatic.desktop usr/share/applications |
| 31 |
dh_installchangelogs NEWS |
| 32 |
dh_installdocs README.txt misc/ideas.txt misc/known_bugs.txt |
| 33 |
dh_auto_install |
| 34 |
|
| 35 |
override_dh_compress: |
| 36 |
dh_compress --exclude=tests/ |
| 37 |
|
| 38 |
override_dh_missing: |
| 39 |
# retain behavior from debhelper v12 |
| 40 |
dh_missing --list-missing |