File: rules

package info (click to toggle)
singular 1%3A4.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,520 kB
  • sloc: cpp: 319,164; ansic: 42,206; perl: 5,855; sh: 5,524; lisp: 4,241; python: 2,101; makefile: 1,890; yacc: 1,651; pascal: 1,411; lex: 1,367; tcl: 1,024; xml: 182
file content (53 lines) | stat: -rwxr-xr-x 1,396 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
43
44
45
46
47
48
49
50
51
52
53
#!/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) \
		--htmldir=/usr/share/doc/singular/html \
		--with-libparse \
		--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:

override_dh_auto_install-arch:
	dh_auto_install -a
	cp -vl -t $(CURDIR)/debian/tmp/usr/libexec/$(DEB_HOST_MULTIARCH)/singular \
		$(CURDIR)/debian/tmp/usr/bin/libparse

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