File: rules

package info (click to toggle)
wxmaxima 26.01.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,904 kB
  • sloc: cpp: 77,544; xml: 10,497; ansic: 3,651; lisp: 1,900; makefile: 32; sh: 28
file content (49 lines) | stat: -rwxr-xr-x 1,046 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
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
include /usr/share/dpkg/buildopts.mk
include /usr/share/dpkg/pkg-info.mk
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DEB_CXXFLAGS_MAINT_APPEND = -Wall -DNDEBUG


%:
	dh $@ --buildsystem=cmake

CONF_FLAGS= \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_BUILD_STAMP="_Debian_$(DEB_VERSION)" \
	-DWXM_INTERPROCEDURAL_OPTIMIZATION=OFF \
	-DWXM_UNIT_TESTS=OFF \
	-DWXM_MAXIMA_DEMO_TESTS=OFF \
	-DWXM_USE_CPPCHECK=OFF

override_dh_auto_configure:
	dh_auto_configure -- $(CONF_FLAGS)

override_dh_auto_build-arch:
	dh_auto_build -a -- all

override_dh_auto_build-indep:
	dh_auto_build -i -- html pdf

override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	xvfb-run make test
endif

override_dh_auto_test-indep:

override_dh_auto_install-arch:
	dh_auto_install -a

override_dh_auto_install-indep:
	dh_auto_install -i -- -C info

override_dh_installexamples-indep:
	dh_installexamples -XCMakeLists.txt -XREADME.md

## eos