File: rules

package info (click to toggle)
probcons 1.12-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 668 kB
  • sloc: cpp: 7,263; xml: 567; makefile: 114; sh: 21
file content (35 lines) | stat: -rwxr-xr-x 1,004 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ 

BINARIES = probcons probcons-RNA pc-project pc-compare pc-makegnuplot

override_dh_auto_build:
	cp Main.cc Main-RNA.cc
	sed -i  s/Defaults.h/Defaults-RNA.h/ Main-RNA.cc
	cp debian/Defaults-RNA.h Defaults-RNA.h
	dh_auto_build

override_dh_link:
	rm -rf $(CURDIR)/debian/probcons-extra/usr/share/doc/probcons-extra
	dh_link -p probcons-extra usr/share/doc/probcons usr/share/doc/probcons-extra

override_dh_clean:
	dh_clean $(BINARIES) Main-RNA.cc Defaults-RNA.h

XP       = xsltproc \
		-''-nonet \
		-''-param man.charmap.use.subset "0" \
		-''-param make.year.ranges "1" \
		-''-param make.single.year.ranges "1" \
		-o debian/

manpages: debian/probcons.1.xml debian/probcons-RNA.1.xml debian/pc-project.1.xml debian/pc-compare.1.xml debian/pc-makegnuplot.1.xml
	$(XP) debian/probcons.1.xml
	$(XP) debian/probcons-RNA.1.xml
	$(XP) debian/pc-project.1.xml
	$(XP) debian/pc-compare.1.xml
	$(XP) debian/pc-makegnuplot.1.xml