summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
blob: 6a94ca6f036c15e187c47ae6e0cc0cbb678bf416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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

install: all
	install -t ../www/scripts *.json

.PHONY: all clean test install