| 1 |
#! /usr/bin/make -f |
| 2 |
%: |
| 3 |
dh $@ |
| 4 |
|
| 5 |
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 6 |
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 7 |
|
| 8 |
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 9 |
CROSS := |
| 10 |
else |
| 11 |
CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc STRIP=$(DEB_HOST_GNU_TYPE)-strip |
| 12 |
endif |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
| 16 |
$(MAKE) small $(CROSS) |
| 17 |
else |
| 18 |
$(MAKE) DEBUG=1 $(CROSS) |
| 19 |
endif |
| 20 |
|
| 21 |
# Of very limited use, and probably doesn't work well in chroots. |
| 22 |
override_dh_auto_test: |
| 23 |
|
| 24 |
override_dh_install: |
| 25 |
dh_install |
| 26 |
#install -m755 mkfstab debian/partconf-mkfstab.postinst |
| 27 |
install -m644 fstab-common \ |
| 28 |
debian/partconf-mkfstab/var/lib/partconf/fstab.d/common |