summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 4d545d1deaa7dfbf37d7dab18b65b074e8285d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/buildtools.mk

%:
	dh $@

override_dh_auto_configure:
	mkdir -p build

override_dh_auto_build:
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o build/ripser ripser.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DUSE_COEFFICIENTS -o build/ripser-coeff ripser.cpp
	scdoc < debian/ripser.1.scd > build/ripser.1
	scdoc < debian/ripser-coeff.1.scd > build/ripser-coeff.1

override_dh_auto_clean:
	rm -rf build