| 1 |
#!/usr/bin/make -f |
| 2 |
# Written by Antti-Juhani Kaijanaho <[email protected]>. |
| 3 |
# You may treat this file as if it were in the public domain. |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ |
| 7 |
|
| 8 |
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 9 |
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 10 |
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 11 |
cross := |
| 12 |
else |
| 13 |
cross := CC=$(DEB_HOST_GNU_TYPE)-gcc |
| 14 |
endif |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
dh_auto_build -- prefix=/usr sysconfdir=/etc $(cross) |
| 18 |
override_dh_auto_install: |
| 19 |
dh_auto_install -- prefix=/usr sysconfdir=/etc |