summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-03-05 18:46:55 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-03-05 18:46:55 -0500
commitd0d86adcdb3a00fc44b68627b0b571de5e454a1f (patch)
tree1ea44085002b7cba1e0aaed55a576029df873e94
parent6f4c832e1f581addb9590535266a4b78999345ae (diff)
downloadhtml5ks-d0d86adcdb3a00fc44b68627b0b571de5e454a1f.tar.xz
html5ks-d0d86adcdb3a00fc44b68627b0b571de5e454a1f.zip
apparently you can't use ifdef inside define
-rw-r--r--Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index cb7c1ec..5d6f5e1 100644
--- a/Makefile
+++ b/Makefile
@@ -109,16 +109,10 @@ $(DUMP)/ui/ctc_strip.webp: $(DUMP)/ui/ctc_strip.png
define png2webp =
$(CWEBP) -q 99 "$<" -o "$@"
$(PNGQUANT) --force --speed 1 --ext .png "$<"
-ifdef ZOPFLIPNG
- $(ZOPFLIPNG) -m -y "$<" "$<"
-endif
-ifdef DEFLOPT
- $(DEFLOPT) "$<"
-endif
-ifdef DEFLUFF
- $(DEFLUFF) < "$<" > "$<".tmp
+ $(if $(ZOPFLIPNG), $(ZOPFLIPNG) -m -y "$<" "$<")
+ $(if $(DEFLOPT),$(DEFLOPT) "$<")
+ $(if $(DEFLUFF),$(DEFLUFF) < "$<" > "$<".tmp)
mv -f "$<".tmp "$<"
-endif
endef
%.webp: %.png