diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-03-05 18:46:55 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-03-05 18:46:55 -0500 |
commit | d0d86adcdb3a00fc44b68627b0b571de5e454a1f (patch) | |
tree | 1ea44085002b7cba1e0aaed55a576029df873e94 /Makefile | |
parent | 6f4c832e1f581addb9590535266a4b78999345ae (diff) | |
download | html5ks-d0d86adcdb3a00fc44b68627b0b571de5e454a1f.tar.xz html5ks-d0d86adcdb3a00fc44b68627b0b571de5e454a1f.zip |
apparently you can't use ifdef inside define
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 |