Makefile 396 B

12345678910111213141516171819
  1. # Requires imagick
  2. Skan/thumb/%.jpg: Skan/%.jpg
  3. @python3 thumbnailer.py $^
  4. build/Kosma.zip: Skan
  5. zip -r $@ $^
  6. thumb: $(addprefix Skan/thumb/, $(notdir $(wildcard Skan/*.jpg)))
  7. build/gallery.yaml: thumb
  8. @echo > $@
  9. @echo 'pictures:' >> $@
  10. @\ls -1 Skan/thumb | sed 's/\(.*\)/ - "\1"/' >> $@
  11. index.html: build/gallery.yaml gallery.j2
  12. @j2 -f yaml gallery.j2 $< > $@
  13. all: index.html thumb