| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all |
| 4 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 5 |
include /usr/share/dpkg/buildflags.mk |
| 6 |
|
| 7 |
export CFLAGS:=$(CPPFLAGS) $(CFLAGS) |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --sourcedirectory=src |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
override_dh_auto_build: debian/chuck.1 |
| 22 |
dh_auto_build -- CHUCK_STRICT=1 linux |
| 23 |
|
| 24 |
debian/chuck.1: debian/chuck.sgml |
| 25 |
docbook-to-man $< > $@ |
| 26 |
|
| 27 |
override_dh_installchangelogs: |
| 28 |
dh_installchangelogs VERSIONS |
| 29 |
|
| 30 |
execute_after_dh_installexamples: |
| 31 |
@echo "Symbolic link duplicate audio files." |
| 32 |
-jdupes --recurse --link-soft $(CURDIR)/debian/chuck-data/usr/share/doc/chuck-data/examples |
| 33 |
|
| 34 |
override_dh_compress: |
| 35 |
dh_compress -X.wav -X.ck |
| 36 |
|
| 37 |
execute_after_dh_fixperms: |
| 38 |
-find $(CURDIR)/debian/chuck-data/usr/share/doc/chuck-data/examples/ -type f -exec chmod --changes 644 '{}' '+' |