File: rules

package info (click to toggle)
singular 1%3A4.3.1-p3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 41,164 kB
  • sloc: cpp: 315,943; ansic: 42,157; perl: 5,847; sh: 5,172; lisp: 4,241; python: 2,101; makefile: 1,879; yacc: 1,647; lex: 1,367; pascal: 1,366; tcl: 1,024; xml: 182
file content (46 lines) | stat: -rwxr-xr-x 1,164 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
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_PKG_VERSION = $(DEB_VERSION)

export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export UPS_VERSION_UPSTREAM = $(firstword $(subst -, ,$(DEB_VERSION_UPSTREAM)))

export PYTHON=/usr/bin/python3

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/libexec/$(DEB_HOST_MULTIARCH) \
		--enable-streamio

override_dh_auto_build-indep:
	dh_auto_build -i
	$(MAKE) -C dox html

override_dh_auto_test-arch:
	chmod a+x omalloc/getlucky-omtTest-X.sh
	dh_auto_test -a

override_dh_auto_test-indep:

DEB_AUTO_INSTALL_MAKEFLAGS = TOPSRCDIR=$(CURDIR) DESTDIR=$(CURDIR)/debian/tmp
override_dh_auto_install-indep:
	dh_auto_install -i
	$(MAKE) -C dox install-html $(DEB_AUTO_INSTALL_MAKEFLAGS)

## WARNING: documentation might not be clean
override_dh_compress-indep:
	dh_compress -X.info -X.idx

override_dh_link-arch:
	dh_link -p libsingular4-dev \
		/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Singular.pc /usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/singular.pc