2021-01-10 18:17:55 +01:00
|
|
|
PHOTOS_ORIG = $(wildcard *.orig.jpg)
|
|
|
|
PHOTOS_MIN = $(patsubst %.orig.jpg,%.min.jpg,$(PHOTOS_ORIG))
|
|
|
|
|
|
|
|
MIN_WIDTH = 800
|
2021-02-27 23:47:16 +01:00
|
|
|
CONVERT_OPTIONS = -quality 75 -strip -interlace Plane
|
2021-01-10 18:17:55 +01:00
|
|
|
|
|
|
|
all: $(PHOTOS_MIN)
|
|
|
|
|
|
|
|
%.min.jpg: %.orig.jpg
|
|
|
|
convert "$<" -size '$(MIN_WIDTH)x' $(CONVERT_OPTIONS) "$@"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.min.jpg
|