mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2024-11-09 23:02:03 +00:00
Initial rules for generating outputs
This commit is contained in:
parent
7c8b59b5c6
commit
44250bcfbc
2 changed files with 16 additions and 1 deletions
16
GNUmakefile
16
GNUmakefile
|
@ -1,8 +1,18 @@
|
|||
|
||||
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 $< $(subst extract/,,$@)
|
||||
unzip $(UNZIPOPTS) -d extract $< $(notdir $@)
|
||||
|
||||
extract/requiem.wad: pwads/requiem.zip
|
||||
extract/mm2.wad: pwads/mm2.zip
|
||||
|
@ -10,3 +20,7 @@ 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/*
|
||||
|
|
1
output/.gitignore
vendored
Normal file
1
output/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.txt
|
Loading…
Reference in a new issue