summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'unrpyc/Makefile')
-rw-r--r--unrpyc/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile
new file mode 100644
index 0000000..86dcac3
--- /dev/null
+++ b/unrpyc/Makefile
@@ -0,0 +1,16 @@
+all: $(patsubst %.rpyc,%.json,$(wildcard *.rpyc))
+
+%.json.o: %.rpyc *.py
+ python unrpyc.py --clobber $< $@
+
+%.json: %.json.o
+ node fix.js $< $@
+
+clean:
+ rm -f *.json.o *.json
+
+test: all
+ jshint --show-non-errors *.json
+
+.PHONY: all clean test
+.PRECIOUS: %.json.o