summaryrefslogtreecommitdiff
path: root/unrpyc
diff options
context:
space:
mode:
Diffstat (limited to 'unrpyc')
-rw-r--r--unrpyc/Makefile6
-rwxr-xr-xunrpyc/find-gzip.sh5
2 files changed, 5 insertions, 6 deletions
diff --git a/unrpyc/Makefile b/unrpyc/Makefile
index ea331ba..3259d12 100644
--- a/unrpyc/Makefile
+++ b/unrpyc/Makefile
@@ -1,8 +1,8 @@
GZIP := $(shell ./find-gzip.sh)
-TARGETS := 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
+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: $(TARGETS)
+all: $(JSON)
%.json.gz: %.json
$(GZIP) -c $< > $@
@@ -38,7 +38,7 @@ test: all
install: all
[ -d ../www/json ] || mkdir ../www/json
- cp -f $(TARGETS) ../www/json
+ cp -f $(JSON) ../www/json
uninstall:
$(RM) ../www/json/*
diff --git a/unrpyc/find-gzip.sh b/unrpyc/find-gzip.sh
index de6d19e..2c2e51d 100755
--- a/unrpyc/find-gzip.sh
+++ b/unrpyc/find-gzip.sh
@@ -2,9 +2,8 @@
if command -v zopfli; then
:
elif command -v gzip; then
- echo >&2 "Consider obtaining zopfli (https://code.google.com/p/zopfli/)"
- echo >&2 "for higher compression ratios (about 5% decrease in size of"
- echo >&2 "script.json.gz)."
+ echo >&2 "Consider obtaining zopfli (https://github.com/Hello71/zopfli) for higher"
+ echo >&2 "compression ratios (about 5% decrease in size of script.json.gz)."
else
echo >&2 "Could not find zopfli or gzip, aborting."
exit 1