#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. export DH_VERBOSE = 1 # see FEATURE AREAS in dpkg-buildflags(1) export DEB_BUILD_MAINT_OPTIONS = hardening=+all # see ENVIRONMENT in dpkg-buildflags(1) # package maintainers to append CFLAGS export DEB_CFLAGS_MAINT_APPEND = -Wall -Werror # future: -pedantic? # package maintainers to append LDFLAGS export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk # This target gets the tree clean even after the patches have been unapplied. # It can go away if/when "makefile-generate-pdf-manpages.patch" and # "make-plain-text-docs-from-html.patch" make it upstream. .PHONY: maintainer-clean maintainer-clean: dh clean rm -f \ cassette.man.pdf \ cmddump.man.pdf \ cpmutil.txt \ dskspec.txt \ hex2cmd.man.pdf \ mkdisk.man.pdf \ xtrs.man.pdf \ .PHONY: check-source check-source: maintainer-clean debian/compare-copyright # The check-binary target uses the non-free ROM files described in # README.Debian. ROMDIR:=/usr/local/lib/xtrs ROM_M1L1:=$(ROMDIR)/level1.rom ROM_M1L2:=$(ROMDIR)/level2.rom ROM_M3L1:=$(ROMDIR)/model3level1.rom ROM_M3BASIC:=$(ROMDIR)/model3.rom #ROM_M4P:=$(ROMDIR)/model4p.rom TITLE:="xtrs Test: Press to Dismiss" .PHONY: check-binary check-binary: binary-arch # XXX: This is a kludge. What's the right way to get the checks to be # run after the build target but before dpkg-source unapplies all the # patches? quilt --quiltrc=$$HOME/.quiltrc-dpkg push -a $(MAKE) check quilt --quiltrc=$$HOME/.quiltrc-dpkg pop -a ./xtrs -title $(TITLE) -romfile $(ROM_M1L1) ./xtrs -title $(TITLE) -romfile $(ROM_M1L2) ./xtrs -title $(TITLE) -model 3 -romfile3 $(ROM_M3L1) ./xtrs -title $(TITLE) -model 3 -romfile3 $(ROM_M3BASIC) ./xtrs -title $(TITLE) -fg green -model 4 -romfile3 $(ROM_M3L1) ./xtrs -title $(TITLE) -fg green -model 4 -romfile3 $(ROM_M3BASIC) ./xtrs -title $(TITLE) -fg green -model 4p %: dh $@ # vim:set ai noet sw=8 ts=8 tw=80: