summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-07-22 09:12:39 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2013-07-22 09:12:39 -0400
commit5366753037dfbbc242fe974cf2f2b8ba4499ac2b (patch)
treedf1e340df2fcffbfda11cff3685cf960ddcd385d /unrpyc/Makefile
parent4cb31637006a33971464a03c1f055c3a87512b9a (diff)
downloadhtml5ks-5366753037dfbbc242fe974cf2f2b8ba4499ac2b.tar.xz
html5ks-5366753037dfbbc242fe974cf2f2b8ba4499ac2b.zip
convert scripts to JSON, misc changes
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