| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
|
| 6 |
CONFIGURE_FLAGS = --with-jack |
| 7 |
|
| 8 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 9 |
CONFIGURE_FLAGS += --with-alsa |
| 10 |
endif |
| 11 |
|
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ |
| 15 |
|
| 16 |
execute_after_dh_auto_clean: |
| 17 |
rm -rf doc/html doc/images |
| 18 |
rm -rf tests/Debug/ tests/Release/ |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 22 |
|
| 23 |
execute_before_dh_auto_install: |
| 24 |
rm -f doc/html/jquery.js |
| 25 |
|
| 26 |
execute_before_dh_auto_test: |
| 27 |
mkdir -p tests/Release |
| 28 |
mkdir -p tests/Debug |
| 29 |
|
| 30 |
override_dh_installchangelogs: |
| 31 |
dh_installchangelogs doc/release.txt |
| 32 |
|
| 33 |
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ |
| 34 |
debian/.*|android/images/midi.png |
| 35 |
|
| 36 |
.PHONY: licensecheck |
| 37 |
licensecheck: |
| 38 |
LANG=C.UTF-8 licensecheck \ |
| 39 |
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ |
| 40 |
--check '.*' --recursive --deb-machine --lines 0 * \ |
| 41 |
> debian/copyright_newhints |
| 42 |
cmp debian/copyright_hints debian/copyright_newhints \ |
| 43 |
&& rm debian/copyright_newhints |