diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-08 14:04:34 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-08 14:04:34 -0400 |
commit | 15ced8b5fbfe2a8a4c1662fbaa789b3273b4e4c8 (patch) | |
tree | bfa5822f02400d7a4f1c3f7a5d5753cfae00458b /unrpyc/Makefile | |
parent | 3eb16e7cf29dde4a4c50b544f794756b6c0ae439 (diff) | |
download | html5ks-15ced8b5fbfe2a8a4c1662fbaa789b3273b4e4c8.tar.xz html5ks-15ced8b5fbfe2a8a4c1662fbaa789b3273b4e4c8.zip |
work on imachine.json
Diffstat (limited to 'unrpyc/Makefile')
-rw-r--r-- | unrpyc/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile index 77a0838..d30347f 100644 --- a/unrpyc/Makefile +++ b/unrpyc/Makefile @@ -2,9 +2,9 @@ all: script.json.gz imachine.json.gz imachine.json.gz: imachine.json -script.json.gz: script.json - gzip -9c script.json > script.json.gz - touch script.json script.json.gz +%.json.gz: %.json + gzip -9c $< > $@ + touch $< $@ script.json: $(patsubst %.rpyc,%.json,$(wildcard *.rpyc)) cat script-*.json > script.json @@ -13,6 +13,9 @@ script.json: $(patsubst %.rpyc,%.json,$(wildcard *.rpyc)) %.json.o: %.rpyc *.py python unrpyc.py --clobber $< $@ +imachine.json: imachine.json.o + node fix.js $< $@ + %.json: %.json.o node fix.js $< $@ sed -i -e 's/^{//;s/}$$/,/' $@ |