statcheck/GNUmakefile

32 lines
773 B
Text
Raw Normal View History

2024-08-31 04:33:02 +00:00
export SOURCE_PORT = $(shell which chocolate-doom)
2024-08-31 06:09:35 +00:00
export SDL_VIDEODRIVER = dummy
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
-noautoload -nogui -nograbmouse
2024-08-31 05:00:30 +00:00
OUTPUTS = $(subst expected/,output/,$(shell find expected/ -name '*.txt'))
2024-08-31 04:33:02 +00:00
UNZIPOPTS = -L -o
2024-08-31 05:00:30 +00:00
check: expected output
@diff -x .gitignore -u -r expected output && echo all tests passed
output: $(OUTPUTS)
2024-08-31 06:01:55 +00:00
output/%.txt: demos/%.lmp
2024-08-31 05:00:30 +00:00
@mkdir -p $(dir $@)
2024-08-31 06:01:55 +00:00
./testrunner $< $@
2024-08-31 05:00:30 +00:00
2024-08-31 04:33:02 +00:00
extract/%:
2024-08-31 05:00:30 +00:00
unzip $(UNZIPOPTS) -d extract $< $(notdir $@)
2024-08-31 04:33:02 +00:00
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
2024-08-31 05:00:30 +00:00
clean:
rm -f extract/*.wad
rm -rf output/*