File: rules

package info (click to toggle)
deepnano 0.0%2Bgit20170813.e8a621e-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 127,256 kB
  • sloc: python: 2,653; cpp: 424; sh: 20; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 550 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@  --with python3

override_dh_auto_build:
	dh_auto_build
	python3 -m markdown -f README.html README.md
	g++ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=gnu++0x align_2d.cc -o align_2d
	g++ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=gnu++0x training/realign.cc -o realign

override_dh_fixperms-arch:
	dh_fixperms -a
	for bin in debian/bin/* ; do \
	    script=`basename $${bin} | sed 's/^deepnano_//'`.py ; \
	    chmod +x debian/*/usr/share/*/$${script} ; \
	done