From eba1e1e7479224d6f9fdbe47cf7dcedc69954c3e Mon Sep 17 00:00:00 2001 From: Brian Woods Date: Wed, 22 Feb 2023 16:42:02 -0500 Subject: webp: fixed a bug src/ was hard coded in the find command, changed that to ${SRC_DIR} --- webp/Makefile.double | 4 ++-- webp/Makefile.single | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'webp') 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 -- cgit v1.2.3