# Make test images for image_sort.tcl
#
# The parallelized Make loop trick is inspired by:
# https://stackoverflow.com/a/12110773/182734
#
# The imagemagick command is from:
# https://stackoverflow.com/a/63043486/182734

IMGDIR=img
N := 16
IMAGES := $(addprefix $(IMGDIR)/test_image_, \
	  $(addsuffix .png, \
          $(shell seq -w $(N))))

all: $(IMAGES)

$(IMGDIR):
	mkdir $@
$(IMAGES): $(IMGDIR)/test_image_%.png:  | $(IMGDIR)
	convert -gravity center -background black -fill white -size 200x150 \
	caption:"$*" $@
