summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 80e81857cfd1fb9666f3e6d877402ab9e18413f9 (plain)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
# The --buildirectory=build is there so that we can easily get a hold
# of documentation and examples, which are not installed by upstream.
	dh $@ --with=python3 --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure -- -DWITH_GUDHI_BENCHMARK=true -DWITH_GUDHI_EXAMPLE=true -DWITH_GUDHI_PYTHON=true -DWITH_GUDHI_TEST=true -DWITH_GUDHI_UTILITIES=true

override_dh_auto_build-indep:
	make -C build doxygen
	dh_auto_build --builddirectory=build

override_dh_auto_test:
	dh_auto_test --no-parallel --builddirectory=build

override_dh_auto_install:
	find example -type f \( -name '*.cpp' -o \( -name '*.txt' -a ! -iname 'cmake*' \) \) -exec sh -c 'install -D -m 644 $$0 debian/tmp/usr/share/doc/libgudhi-examples/$$0' {} \;
	install -D build/GudhUI/GudhUI debian/tmp/usr/bin/gudhui
	dh_auto_install --builddirectory=build