X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=171c82a56672df9e6e2f7811635800378dfdc144;hb=4ce555da87952cdc8a2c26a5f4f922dbf73ea03e;hp=2b11ad8e11fef2978f024fc3a6d65c3f2f474e98;hpb=0c0108e562f60ae79553c2e3072a315164513a69;p=debian%2Fcc1111 diff --git a/debian/rules b/debian/rules index 2b11ad8..171c82a 100755 --- a/debian/rules +++ b/debian/rules @@ -9,10 +9,10 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) export HOME=$(CURDIR)/build -CFLAGS = `dpkg-buildflags --get CFLAGS` +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) CFLAGS += -Wall -Wno-comment -LDFLAGS = `dpkg-buildflags --get LDFLAGS` -CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g -O0 @@ -22,8 +22,7 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif -clean: clean-patched unpatch -clean-patched: +clean: dh_testdir dh_testroot # Clean up files that Makefile should have cleaned @@ -133,6 +132,12 @@ install-stamp: build rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/z80 rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/ds390 rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/gbz80 + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/ds400rom.h + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/*390* + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/pic + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/pic16 + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/z80 + rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/gbz80 touch $@ # Must not depend on anything. This is to be called by binary-arch/binary-indep