1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(filter i386 lpia,$(DEB_HOST_ARCH)))
BACKEND =
else
BACKEND = x86emu
endif
override_dh_auto_build:
dh_auto_build -- BACKEND="$(BACKEND)"
build: build-stamp
build-stamp:
dh --with quilt build
touch $@
clean:
dh --with quilt $@
install: install-stamp
install-stamp: build
dh install
touch $@
binary-indep:
override_dh_strip:
dh_strip --dbg-package=libx86-dbg
binary-arch: build install
dh $@
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|