File: rules

package info (click to toggle)
nauty 2.9.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100,280 kB
  • sloc: ansic: 114,139; sh: 4,157; makefile: 3,630
file content (97 lines) | stat: -rwxr-xr-x 2,721 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/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 LD_LIBRARY_PATH = .libs

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

ifeq ($(filter $(DEB_HOST_ARCH_CPU),amd64 i386),)
	DEB_DH_AUTO_CONFIGURE_POPCNT = --disable-popcnt
else
	DEB_DH_AUTO_CONFIGURE_POPCNT = --enable-runtime-popcnt
endif

export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/cliquer

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

%:
	dh $@

override_dh_auto_configure-arch:
	dh_auto_configure --                              \
		--enable-clz                              \
		$(DEB_DH_AUTO_CONFIGURE_OPTS__ENABLE_TLS) \
		--disable-ansicontrols                    \
		--enable-generic                          \
		$(DEB_DH_AUTO_CONFIGURE_POPCNT)           \
		--includedir=/usr/include/nauty

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

# rename gtools
execute_before_dh_install-arch:
	cd debian/tmp/usr/bin &&                        \
		for gtool in *;                         \
		do if test "$$gtool" != dreadnaut; then \
			mv "$$gtool" "nauty-$$gtool";   \
		fi;                                     \
		done

# 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)/libnautyQ.so ];  \
		then dh_install -plibnauty-dev usr/lib/*/libnautyQ.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-29.txt

execute_before_dh_installman-arch:
	mkdir -p debian/tmp/usr/share/man/man1
	cd debian/tmp/usr/bin &&                                           \
		for gtool in *;                                            \
		do help2man -N -o ../share/man/man1/$$gtool.1              \
			--version-string=$(VERSION) --no-discard-stderr    \
			-n "graph-processing utility from the nauty suite" \
			./$$gtool;                                         \
		done

override_dh_compress-indep:
	dh_compress -X.pdf -Xexamples