diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-15 13:47:21 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-15 13:47:21 -0400 |
commit | af559cdbca0683c1c513d42c5b5254e1e9efd436 (patch) | |
tree | 6255d9518f60f93da146f6ca532aece227e4e09c | |
parent | 4acddaff97ce6afb28086f4ce93afffceebd4f53 (diff) | |
download | html5ks-af559cdbca0683c1c513d42c5b5254e1e9efd436.tar.xz html5ks-af559cdbca0683c1c513d42c5b5254e1e9efd436.zip |
stuff
-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 |