1#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
4#DH_VERBOSE = 1
5
6DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
7export DEB_HOST_MULTIARCH
8
9PREPROCESS_FILES := $(wildcard debian/*.in)
10
11$(PREPROCESS_FILES:.in=): %: %.in
12	sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@
13
14.PHONY: override_dh_auto_clean
15override_dh_auto_clean:
16	dh_auto_clean
17	rm -rf $(PREPROCESS_FILES:.in=)
18
19.PHONY: override_dh_auto_install
20override_dh_auto_install: $(PREPROCESS_FILES:.in=)
21	dh_auto_install -- PREFIX=/usr
22
23.PHONY: override_dh_auto_test
24override_dh_auto_test:
25
26
27.PHONY: override_dh_strip
28override_dh_strip:
29	dh_strip --dbg-package=libtinyalsa-dbg
30
31%:
32	dh $@
33
34