From 780226fa442abda5cb5b1018e998f50e7985e908 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 17 Aug 2013 22:22:38 -0400 Subject: toolchain improvements --- unrpyc/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'unrpyc/Makefile') diff --git a/unrpyc/Makefile b/unrpyc/Makefile index b8ad495..ea97e56 100644 --- a/unrpyc/Makefile +++ b/unrpyc/Makefile @@ -1,7 +1,9 @@ -all: script.json.gz imachine.json.gz imachine_replay.json.gz +gzip := $(shell ./find-gzip.sh) + +all: script.json script.json.gz imachine.json imachine.json.gz imachine_replay.json imachine_replay.json.gz %.json.gz: %.json - gzip -9c $< > $@ + $(gzip) -c $< > $@ touch $< $@ script.json: $(patsubst %.rpyc,%.json,$(wildcard script-*.rpyc)) @@ -25,6 +27,9 @@ test: all jshint --show-non-errors *.json install: all - install -t ../www/scripts script.json script.json.gz imachine.json imachine.json.gz + install -t ../www/scripts script.json script.json.gz imachine.json imachine.json.gz imachine_replay.json imachine_replay.json.gz + +uninstall: + rm -f ../www/scripts/* .PHONY: all clean test install -- cgit v1.2.3-70-g09d2