From af559cdbca0683c1c513d42c5b5254e1e9efd436 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 15 Aug 2013 13:47:21 -0400 Subject: stuff --- unrpyc/Makefile | 15 ++++++--------- 1 file 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 -- cgit v1.2.3-70-g09d2