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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/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 <F8> 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:
|