summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'unrpyc/Makefile')
-rw-r--r--unrpyc/Makefile9
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/}$$/,/' $@