mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2024-11-22 04:31:22 +00:00
7d0a36dca1
As well as being more deliberate, this also eliminates the need to do a complete scan of the directory tree just to figure out what files to run.
40 lines
940 B
Makefile
40 lines
940 B
Makefile
|
|
export SOURCE_PORT = $(shell which chocolate-doom)
|
|
export SDL_VIDEODRIVER = dummy
|
|
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
|
|
-noautoload -nogui -nograbmouse
|
|
|
|
ALL_DEMOS = $(patsubst %,demos/%,$(shell cat demos.txt))
|
|
OUTPUTS = $(subst .lmp,.txt,$(subst demos/,output/,$(ALL_DEMOS)))
|
|
UNZIPOPTS = -L -o
|
|
|
|
check: expected output
|
|
diff --strip-trailing-cr -x .gitignore -u -r expected output
|
|
@echo all tests passed
|
|
|
|
output: $(OUTPUTS)
|
|
|
|
output/%.txt: demos/%.lmp $(SOURCE_PORT)
|
|
@mkdir -p $(dir $@)
|
|
./testrunner $< $@
|
|
|
|
.depends: makedepends
|
|
./makedepends $@
|
|
|
|
extract/%:
|
|
unzip $(UNZIPOPTS) -d extract $< $(notdir $@)
|
|
@touch $@
|
|
|
|
extract/requiem.wad: pwads/requiem.zip
|
|
extract/mm2.wad: pwads/mm2.zip
|
|
extract/mm.wad: pwads/mm_allup.zip
|
|
extract/hr.wad: pwads/hr.zip
|
|
extract/av.wad: pwads/av_new.zip
|
|
extract/class_ep.wad: pwads/class_ep.zip
|
|
|
|
clean:
|
|
rm -f extract/*.wad
|
|
rm -rf output/*
|
|
rm -f .depends
|
|
|
|
include .depends
|