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