File: rules

package info (click to toggle)
gff2aplot 2.0-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,576 kB
  • sloc: perl: 5,378; ansic: 806; makefile: 120; javascript: 93; sh: 41
file content (25 lines) | stat: -rwxr-xr-x 956 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
#!/usr/bin/make -f
# debian/rules file for gff2aplot using dh
# Andreas Tille <tille@debian.org>
# GPL

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

# Upstream is missing to clean some files
override_dh_auto_clean:
	rm -f src/ali2gff/ali2gff bin/ali2gff

# We need to rename some *.pl files (done in dh_auto_install to avoid useless install step to /usr/local/bin)
override_dh_auto_install:
	for script in `find bin -name "*.pl"` ; do mv $$script bin/`basename $$script .pl` ; done

override_dh_installexamples:
	dh_installexamples
	# Fix path names, silence GS
	find debian/*/usr/share/doc/*/examples -name README -exec sed -i \
	                                                                 -e 's?^$$BIN/\([0-9a-z]\+\)\.pl?\1?' \
	                                                                 -e 's?^$$BIN/\([0-9a-z]\+\) ?\1 ?'   \
	                                                                 -e 's?^GS=.*;?GS="gs -q" ;?' \{\} \;