summaryrefslogtreecommitdiff
path: root/unrpyc/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-03-06 17:02:37 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-03-06 17:02:37 -0500
commit69890d17a01426cf7de8b6aa1dc64b56dfb7449d (patch)
tree13bf9039b1ca051dfc39193eaf48e74393a5a096 /unrpyc/Makefile
parentcbb002ff60c33d6c4bfcaad42c8df1cfda8f7ea3 (diff)
downloadhtml5ks-69890d17a01426cf7de8b6aa1dc64b56dfb7449d.tar.xz
html5ks-69890d17a01426cf7de8b6aa1dc64b56dfb7449d.zip
meh
Diffstat (limited to 'unrpyc/Makefile')
-rw-r--r--unrpyc/Makefile46
1 files changed, 0 insertions, 46 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile
deleted file mode 100644
index 3259d12..0000000
--- a/unrpyc/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-GZIP := $(shell ./find-gzip.sh)
-
-JSON := script.json script.json.gz imachine.json imachine.json.gz ui-strings.json ui-strings.json.gz ui-strings_FR.json ui-strings_FR.json.gz
-
-all: $(JSON)
-
-%.json.gz: %.json
- $(GZIP) -c $< > $@
- touch $< $@
-
-script.json: $(patsubst %.rpyc,%.json,$(wildcard script-*.rpyc))
- cat script-*.json > script.json
- sed -i -e 's/^/{/;s/,$$/}/' script.json
-
-%.json: %.json.o
- uglifyjs $< --expr > $@
-
-ui-strings.json.o ui-strings_FR.json.o: ui-strings%.json.o: ui-strings%.rpyc *.py
- python3 unrpyc.py --clobber $< $@
- sed -i -e 's/ \["init_language", "[a-z]*", \],//;s/^\]}$$/}/' $@
-
-ui_settings.json.o: ui_settings.rpyc *.py
- python3 unrpyc.py --clobber $< --ignore-python $@
- sed -i -e 's/,,/,/g;/: *,$$/d' $@
-
-%.json.o: %.rpyc *.py
- python3 unrpyc.py --clobber $< $@
-
-script-%.json: script-%.json.o
- uglifyjs $< --expr > $@
- sed -i -e 's/^{//;s/}$$/,/' $@
-
-clean:
- $(RM) *.json*
-
-test: all
- jshint --show-non-errors *.json
-
-install: all
- [ -d ../www/json ] || mkdir ../www/json
- cp -f $(JSON) ../www/json
-
-uninstall:
- $(RM) ../www/json/*
-
-.PHONY: all clean test install