File: rules

package info (click to toggle)
nauty 2.7r1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 20,124 kB
  • sloc: ansic: 58,563; makefile: 1,032; sh: 137
file content (52 lines) | stat: -rwxr-xr-x 1,251 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
50
51
52
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION
VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/+ds//' -e 's/r/\./')

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

ifeq ($(DEB_HOST_ARCH),armhf)
	DEB_DH_AUTO_CONFIGURE_OPTS__ENABLE_TLS := --disable-tls
else
	DEB_DH_AUTO_CONFIGURE_OPTS__ENABLE_TLS := --enable-tls
endif

export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/cliquer

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

%:
	dh $@

override_dh_autoreconf:
	sed -i 's/@INJECTVER@/$(VERSION)/' configure.ac
	dh_autoreconf

override_dh_auto_configure-arch:
	dh_auto_configure -- --enable-clz $(DEB_DH_AUTO_CONFIGURE_OPTS__ENABLE_TLS) --disable-ansicontrols

override_dh_auto_configure-indep:
	@true

override_dh_auto_build-indep:
	@true

override_dh_auto_test-indep:
	@true

override_dh_auto_install-indep:
	@true

override_dh_installdocs:
	dh_installdocs -plibnauty2-dev --link-doc=libnauty2
	dh_installdocs --remaining-packages

override_dh_installchangelogs:
	dh_installchangelogs --keep changes24-27.txt

override_dh_compress-indep:
	dh_compress -X.pdf -Xexamples