-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (34 loc) · 1011 Bytes
/
Makefile
File metadata and controls
40 lines (34 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Image conversion Makefile
# Usage:
# make convert - Convert all images (webp + mp4)
# make webp - Convert PNG/JPG to WebP
# make mp4 - Convert GIF to MP4
# make clean - Remove converted files (use with caution)
.PHONY: all convert webp mp4 help clean
# Default target
all: convert
# Convert all images
convert: webp mp4
@echo ""
@echo "=== All conversions complete ==="
# Convert PNG/JPG to WebP
webp:
@echo "=== Converting PNG/JPG to WebP ==="
@./scripts/convert-images-to-webp.sh
# Convert GIF to MP4
mp4:
@echo "=== Converting GIF to MP4 ==="
@./scripts/convert-gif.sh
# Help
help:
@echo "Image Conversion Makefile"
@echo ""
@echo "Usage:"
@echo " make convert - Convert all images (webp + mp4)"
@echo " make webp - Convert PNG/JPG to WebP only"
@echo " make mp4 - Convert GIF to MP4 only"
@echo " make help - Show this help"
@echo ""
@echo "Requirements:"
@echo " - cwebp (brew install webp)"
@echo " - ffmpeg (brew install ffmpeg)"