diff options
-rw-r--r-- | unrpyc/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile index 9566bea..b8ad495 100644 --- a/unrpyc/Makefile +++ b/unrpyc/Makefile @@ -1,22 +1,20 @@ -all: script.json.gz imachine.json.gz - -imachine.json.gz: imachine.json +all: script.json.gz imachine.json.gz imachine_replay.json.gz %.json.gz: %.json gzip -9c $< > $@ touch $< $@ -script.json: $(patsubst %.rpyc,%.json,$(wildcard *.rpyc)) +script.json: $(patsubst %.rpyc,%.json,$(wildcard script-*.rpyc)) cat script-*.json > script.json sed -i -e 's/^/{/;s/,$$/}/' script.json +%.json: %.json.o + node fix.js $< $@ + %.json.o: %.rpyc *.py python unrpyc.py --clobber $< $@ -imachine.json: imachine.json.o - node fix.js $< $@ - -%.json: %.json.o +script-%.json: script-%.json.o node fix.js $< $@ sed -i -e 's/^{//;s/}$$/,/' $@ @@ -30,4 +28,3 @@ install: all install -t ../www/scripts script.json script.json.gz imachine.json imachine.json.gz .PHONY: all clean test install -.PRECIOUS: imachine.json.o |