CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
endif
-buildarch := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-ifeq ($(buildarch),amd64)
+ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64)
CFLAGS=-g -O2 -Wall -DUNALIGNED_OK
else
CFLAGS=-g -O2 -Wall
build-stamp: configure-stamp
dh_testdir
$(MAKE) -C build
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ $(MAKE) -C build check
+endif
+endif
touch build-stamp
build-indep: build-indep-stamp
dh_clean -k
dh_installdirs
i686-w64-mingw32-strip build-indep/gzip.exe
- install -m 0755 build-indep/gzip.exe debian/gzip-indep/usr/share/indep/
+ install -m 0755 build-indep/gzip.exe debian/gzip-win32/usr/share/win32/
binary-indep: build-indep install-indep
dh_testdir -i