File: rules

package info (click to toggle)
nauty 2.8.9%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,568 kB
  • sloc: ansic: 79,914; makefile: 1,501; sh: 186
file content (67 lines) | stat: -rwxr-xr-x 1,622 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/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

include /usr/share/dpkg/architecture.mk

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 $@

execute_before_dh_autoreconf:
	aclocal

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

execute_before_dh_auto_test-arch:
	chmod +x runalltests

execute_after_dh_auto_test-arch:
	chmod -x runalltests

override_dh_auto_test-indep:
	@true

override_dh_auto_install-indep:
	@true

# the 128-bit integer libraries may or may not be built, so only
# install them if they are
execute_after_dh_install-arch:
	if [ -e debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnautyQ0.so ]; \
		then dh_install -plibnauty-dev usr/lib/*/libnautyQ0.so;   \
	fi
	if [ -e debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnautyQ1.so ]; \
		then dh_install -plibnauty-dev usr/lib/*/libnautyQ1.so;   \
	fi


override_dh_installdocs:
	dh_installdocs -plibnauty-dev --link-doc=libnauty-$(VERSION)
	dh_installdocs --remaining-packages

override_dh_installchangelogs:
	dh_installchangelogs --keep changes24-28.txt

override_dh_compress-indep:
	dh_compress -X.pdf -Xexamples