#!/usr/bin/make -f include /usr/share/dpatch/dpatch.make DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc else CROSS= endif clean: unpatch dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_clean config.status: configure patch-stamp dh_testdir CFLAGS="$(CFLAGS)" ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch build-stamp install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) prefix=$(CURDIR)/debian/spell/usr install mkdir -p debian/spell/usr/share mv debian/spell/usr/info debian/spell/usr/share binary: binary-arch binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installman dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-indep: .PHONY: clean build install binary binary-arch binary-indep