# Requires imagick FOTO_PATH=../../www/decrunch.org/2117/foto/katod $(FOTO_PATH)/thumb/%.jpg: $(FOTO_PATH)/%.jpg @python3 thumbnailer.py $^ build/Kosma.zip: $(FOTO_PATH) zip -r $@ $^ thumb: $(addprefix $(FOTO_PATH)/thumb/, $(notdir $(wildcard $(FOTO_PATH)/*.jpg))) build/gallery.yaml: thumb @echo > $@ @echo 'pictures:' >> $@ @\ls -1 $(FOTO_PATH)/thumb | sed 's/\(.*\)/ - "\1"/' >> $@ index.html: build/gallery.yaml gallery.j2 @j2 -f yaml gallery.j2 $< > $@ all: index.html thumb