Makefile @ c499267711c3 lisp

Tables of contents and RSS
author Steve Losh <steve@stevelosh.com>
date Wed, 08 Jan 2020 22:05:32 -0800
parents 65c17aa7972b
children d70b175d5479
photos := $(shell ffind 'static/media/images/photography/photos/.*/.*.jpg' --entire)
thumbs := $(subst photos,thumbnails,$(photos))

THUMBNAIL_CMD = convert $< -resize "200^>" -gravity center -crop 200x200+0+0 -strip $@

thumbnails: $(thumbs)

static/media/images/photography/thumbnails/plants/%.jpg: static/media/images/photography/photos/plants/%.jpg
	$(THUMBNAIL_CMD)

static/media/images/photography/thumbnails/scotland/%.jpg: static/media/images/photography/photos/scotland/%.jpg
	$(THUMBNAIL_CMD)

static/media/images/photography/thumbnails/iceland/%.jpg: static/media/images/photography/photos/iceland/%.jpg
	$(THUMBNAIL_CMD)