From 15ced8b5fbfe2a8a4c1662fbaa789b3273b4e4c8 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 8 Aug 2013 14:04:34 -0400 Subject: work on imachine.json --- unrpyc/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'unrpyc/Makefile') 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/}$$/,/' $@ -- cgit v1.2.3-70-g09d2