From d0d86adcdb3a00fc44b68627b0b571de5e454a1f Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 5 Mar 2014 18:46:55 -0500 Subject: apparently you can't use ifdef inside define --- Makefile | 12 +++--------- 1 file 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 -- cgit v1.2.3-54-g00ecf