File: rules

package info (click to toggle)
mdk 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,016 kB
  • sloc: ansic: 22,682; sh: 6,167; lisp: 1,118; lex: 830; makefile: 582; yacc: 288; python: 124
file content (42 lines) | stat: -rwxr-xr-x 1,073 bytes parent folder | download | duplicates (2)
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
41
42
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all
export DEB_BUILD_MAINT_OPTIONS

DEB_CPPFLAGS_MAINT_APPEND=	-DGTK_DISABLE_DEPRECATED
export DEB_CPPFLAGS_MAINT_APPEND

AUTOPOINT=	intltoolize --automake --copy
export AUTOPOINT

ifeq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
werror=		no
else
werror=		yes
endif

include /usr/share/dpkg/default.mk

include /usr/share/debhelper/dh_package_notes/package-notes.mk

override_dh_auto_configure:
	dh_auto_configure -- --with-werror=$(werror)

override_dh_auto_test:
	[ -f po/POTFILES.skip ] || cp debian/POTFILES.skip po/
	dh_auto_test
	env \
		TEST_MIXASM_PROG='${CURDIR}/mixutils/mixasm' \
		TEST_MIXVM_PROG='${CURDIR}/mixutils/mixvm' \
		TEST_MIXGUILE_PROG='${CURDIR}/mixguile/mixguile' \
		TEST_MIX_USE_LOCAL=1 \
		pytest-3 -s -vv -- '${CURDIR}/debian/tests/python'

execute_after_dh_installchangelogs:
	install -m 644 NEWS debian/mdk/usr/share/doc/mdk/

%:
	dh $@