mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2024-11-21 20:21:27 +00:00
26 lines
569 B
Makefile
26 lines
569 B
Makefile
|
|
OUTPUTS = $(subst expected/,output/,$(shell find expected/ -name '*.txt'))
|
|
UNZIPOPTS = -L -o
|
|
|
|
check: expected output
|
|
@diff -x .gitignore -u -r expected output && echo all tests passed
|
|
|
|
output: $(OUTPUTS)
|
|
|
|
output/%:
|
|
@mkdir -p $(dir $@)
|
|
touch $@ # TODO
|
|
|
|
extract/%:
|
|
unzip $(UNZIPOPTS) -d extract $< $(notdir $@)
|
|
|
|
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/*
|