2010-09-24 22:28:40 -06:00
|
|
|
PUZZLES += basemath bletchley codebreaking compaq crypto
|
|
|
|
PUZZLES += forensics hackme net-re sequence skynet webapp
|
2010-09-24 17:24:43 -06:00
|
|
|
|
|
|
|
-include puzzles/*/*.mk
|
|
|
|
|
2010-09-26 21:54:31 -06:00
|
|
|
puzzles/%-install:
|
2010-09-24 17:24:43 -06:00
|
|
|
mkdir -p build/$*
|
|
|
|
puzzles/mkpuzzles puzzles/$* build/$*
|
2010-09-26 21:54:31 -06:00
|
|
|
touch $@
|
2010-09-24 17:24:43 -06:00
|
|
|
|
|
|
|
puzzles/%-clean:
|
2010-09-26 21:54:31 -06:00
|
|
|
rm -rf build/$* puzzles/$*-install
|
|
|
|
|
|
|
|
%.pkg: puzzles/%-install
|
|
|
|
mksquashfs build/$* $*.pkg -all-root -noappend
|
2010-09-24 17:24:43 -06:00
|
|
|
|
2010-09-26 21:54:31 -06:00
|
|
|
packages: $(addsuffix .pkg, $(PUZZLES))
|
|
|
|
install: $(patsubst %, puzzles/%-install, $(PUZZLES))
|
|
|
|
clean: $(patsubst %, puzzles/%-clean, $(PUZZLES))
|