File: rules

package info (click to toggle)
msolve 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,116 kB
  • sloc: ansic: 41,977; sh: 1,919; makefile: 204
file content (26 lines) | stat: -rwxr-xr-x 682 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
LIBPATH = "$$LD_LIBRARY_PATH:debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)"

%:
	dh $@

execute_after_dh_auto_build:
	cd doc && pdflatex msolve-tutorial && \
		biber msolve-tutorial      && \
		pdflatex msolve-tutorial   && \
		pdflatex msolve-tutorial

# skip tests on 32-bit architectures (band-aid fix for #1040774)
ifeq ($(DEB_HOST_ARCH_BITS),32)
override_dh_auto_test:
endif

execute_after_dh_auto_install:
# generate manpage
	LD_LIBRARY_PATH=$(LIBPATH) help2man -N -n \
		"computer algebra algorithms for solving polynomial systems" \
		debian/tmp/usr/bin/msolve > msolve.1