summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-08-06 13:50:37 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2013-08-06 13:50:37 -0400
commit3eb16e7cf29dde4a4c50b544f794756b6c0ae439 (patch)
treee2f562b6b6c4fb8054dfb4d55a7e977976fa395e /unrpyc/Makefile
parent1a9a7655c0bd9fdf8d77d1763aca8b67d2264e08 (diff)
downloadhtml5ks-3eb16e7cf29dde4a4c50b544f794756b6c0ae439.tar.xz
html5ks-3eb16e7cf29dde4a4c50b544f794756b6c0ae439.zip
fix stuff and such, work on unrpyc imachine
Diffstat (limited to 'unrpyc/Makefile')
-rw-r--r--unrpyc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile
index 6e28df4..77a0838 100644
--- a/unrpyc/Makefile
+++ b/unrpyc/Makefile
@@ -1,4 +1,6 @@
-all: script.json.gz
+all: script.json.gz imachine.json.gz
+
+imachine.json.gz: imachine.json
script.json.gz: script.json
gzip -9c script.json > script.json.gz
@@ -8,15 +10,15 @@ script.json: $(patsubst %.rpyc,%.json,$(wildcard *.rpyc))
cat script-*.json > script.json
sed -i -e 's/^/{/;s/,$$/}/' script.json
-script-%.json.o: script-%.rpyc *.py
+%.json.o: %.rpyc *.py
python unrpyc.py --clobber $< $@
-script-%.json: script-%.json.o
+%.json: %.json.o
node fix.js $< $@
sed -i -e 's/^{//;s/}$$/,/' $@
clean:
- rm -f *.json.o *.json script.json.gz
+ rm -f *.json.o *.json *.gz
test: all
jshint --show-non-errors *.json
@@ -25,3 +27,4 @@ install: all
install -t ../www/scripts script.json script.json.gz
.PHONY: all clean test install
+.PRECIOUS: imachine.json.o