nomnom/static/img/photo/Makefile

14 lines
297 B
Makefile
Raw Normal View History

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
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