File: rules

package info (click to toggle)
mathomatic 16.0.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,192 kB
  • sloc: ansic: 22,029; makefile: 340; sh: 319; python: 96; awk: 39
file content (40 lines) | stat: -rwxr-xr-x 1,077 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1
export CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -std=gnu17
export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_build:
	CFLAGS="$(CFLAGS) -DEDITLINE" LDLIBS="-ledit" dh_auto_build
	dh_auto_build --sourcedirectory=primes
	$(MAKE) pdf

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e ;
	$(MAKE) check
	$(MAKE) -C primes check
else
	:
endif

override_dh_auto_install:
	dh_installdirs usr/bin usr/share/applications
	$(MAKE) m4install DESTDIR=$(CURDIR)/debian/mathomatic prefix=/usr TEXT_DOCS="AUTHORS README.txt"
	$(MAKE) -C primes install DESTDIR=$(CURDIR)/debian/mathomatic-primes prefix=/usr
	dh_install icons/mathomatic.png usr/share/pixmaps
	dh_install icons/mathomatic.desktop usr/share/applications
	dh_installchangelogs	NEWS
	dh_installdocs		README.txt misc/ideas.txt misc/known_bugs.txt
	dh_auto_install

override_dh_compress:
	dh_compress --exclude=tests/

override_dh_missing:
	# retain behavior from debhelper v12
	dh_missing --list-missing