Move the C&S thing into the attic
This commit is contained in:
23
oldstuff/intro-to-crafty/Makefile
Normal file
23
oldstuff/intro-to-crafty/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
INTRO_ASSETS_ZIP := tmp/crafty_bng_tut_assets.zip
|
||||
INTRO_ASSETS_EXTRACTED_README := tmp/crafty_bng_tut_assets/README
|
||||
|
||||
.PHONY: all
|
||||
all: lib/crafty.js assets/README
|
||||
|
||||
.PHONY: serve
|
||||
serve:
|
||||
python3 -m http.server
|
||||
|
||||
lib/crafty.js:
|
||||
curl -sSL -o $@ http://craftyjs.com/release/0.5.3/crafty.js
|
||||
|
||||
assets/README: $(INTRO_ASSETS_EXTRACTED_README)
|
||||
rsync -av $(dir $(INTRO_ASSETS_EXTRACTED_README)) assets/
|
||||
|
||||
$(INTRO_ASSETS_EXTRACTED_README): $(INTRO_ASSETS_ZIP)
|
||||
cd tmp && \
|
||||
unzip -o $(notdir $(INTRO_ASSETS_ZIP)) && \
|
||||
find . -type f | xargs touch
|
||||
|
||||
$(INTRO_ASSETS_ZIP):
|
||||
curl -sSL -o $@ http://buildnewgames.com/assets/article//introduction-to-crafty/crafty_bng_tut_assets.zip
|
Reference in New Issue
Block a user