File: rules

package info (click to toggle)
ripser 1.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,436 kB
  • sloc: cpp: 1,053; python: 59; makefile: 28
file content (28 lines) | stat: -rwxr-xr-x 633 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
#!/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: build/ripser build/ripser-coeff build/ripser.1 build/ripser-coeff.1

build/ripser: ripser.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $<

build/ripser-coeff: ripser.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DUSE_COEFFICIENTS -o $@ $<

build/ripser.1: debian/ripser.1.scd
	scdoc < $< > $@

build/ripser-coeff.1: debian/ripser-coeff.1.scd
	scdoc < $< > $@

override_dh_auto_clean:
	rm -rf build