File: rules

package info (click to toggle)
ampliconnoise 1.29-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,040 kB
  • sloc: ansic: 18,080; sh: 2,899; perl: 2,089; makefile: 235
file content (38 lines) | stat: -rwxr-xr-x 906 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
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Override path as a way to hook mpicc
PATH := $(CURDIR)/debian/bin_override:${PATH}
export PATH

%:
	dh $@

override_dh_auto_install:
	make install
	dh_install bin/* /usr/bin
	dh_install Data/* /usr/share/ampliconnoise/Data/
	dh_install Scripts/* /usr/share/ampliconnoise/Scripts/

#A typo in the upstream Makefile prevents proper cleaning.
override_dh_clean:
	dh_clean
	rm -f *.o
	rm -f *.1

override_dh_installman:
	debian/ampliconnoise.pod
	dh_installman ampliconnoise.1
	( for f in bin/* ; do \
	  ln -s ampliconnoise.1 debian/ampliconnoise/usr/share/man/man1/`basename "$$f"`.1 ; \
	done )

override_dh_compress:
	# Use xz compression for data file to shrink size even more
	find debian -name C005.dat -exec xz \{\} \;
	dh_compress --exclude=.pdf