summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5e46eb4..af0945c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,7 @@ JPG2WEBP := $(patsubst %.jpg,%.webp,$(JPGS))
images: $(PNG2WEBP) $(JPG2WEBP)
-%.webp: %.png
- cwebp -q 100 "$<" -o "$@"
-
-%.webp: %.jpg
+%.webp: %.png %.jpg
cwebp -q 100 "$<" -o "$@"
build: clean