aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Woods2023-02-22 16:42:02 -0500
committerBrian Woods2023-02-22 16:48:08 -0500
commiteba1e1e7479224d6f9fdbe47cf7dcedc69954c3e (patch)
treec010518e27ee1c225f350b67f9eecbf1bd5a8228
parent3846be2ff4b06371a02546aa7a8b6aa3c4b8fa98 (diff)
webp: fixed a bug
src/ was hard coded in the find command, changed that to ${SRC_DIR}
-rw-r--r--webp/Makefile.double4
-rw-r--r--webp/Makefile.single2
2 files changed, 3 insertions, 3 deletions
diff --git a/webp/Makefile.double b/webp/Makefile.double
index 18a1f8b..490fd56 100644
--- a/webp/Makefile.double
+++ b/webp/Makefile.double
@@ -8,8 +8,8 @@ LOW_OUT_DIR=low_quality
HIGH_WEBP_OPT=-near_lossless 60
LOW_WEBP_OPT=-af -pass 6 -psnr 38
-SRC_PNG=$(shell find src/ -type f -iname '*.png')
-SRC_WEBP=$(shell find src/ -type f -iname '*.webp')
+SRC_PNG=$(shell find ${SRC_DIR}/ -type f -iname '*.png')
+SRC_WEBP=$(shell find ${SRC_DIR}/ -type f -iname '*.webp')
HIGH_OUT=$(patsubst ${SRC_DIR}/%.png, ${HIGH_OUT_DIR}/%.webp, $(SRC_PNG)) \
$(patsubst ${SRC_DIR}/%.webp, ${HIGH_OUT_DIR}/%.webp, $(SRC_WEBP))
LOW_OUT=$(patsubst ${SRC_DIR}/%.png, ${LOW_OUT_DIR}/%.webp, $(SRC_PNG)) \
diff --git a/webp/Makefile.single b/webp/Makefile.single
index c84a4b8..a34f1d2 100644
--- a/webp/Makefile.single
+++ b/webp/Makefile.single
@@ -5,7 +5,7 @@ SRC_DIR=src
OUT_DIR=high_quality
WEBP_OPT=-near_lossless 60
-SRC=$(shell find src/ -type f -name '*.png')
+SRC=$(shell find ${SRC_DIR}/ -type f -name '*.png')
OUT=$(patsubst ${SRC_DIR}/%.png, ${OUT_DIR}/%.webp, $(SRC))
.PHONY: all clean