Makefile 494 B

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