STYLES := opaque normal double-blended alpha-mostly alpha-only
FILES  := test.html \
	$(STYLES:%=test100-%.png) \
	$(STYLES:%=test100r-%.png) \
	$(STYLES:%=test100i-%.png) \
	$(STYLES:%=test100ir-%.png) \
	$(STYLES:%=test100k-%.png) \
	$(STYLES:%=test100ik-%.png)

all: $(FILES)
clean:
	rm -f $(FILES)

test.html: ./make-test-html
	./make-test-html $(STYLES) > $@

test100-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cd rgb:40/00/A0 $(@:test100-%.png=-%) -s 100

test100r-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cd rgb:40/00/A0 -cl rgb:F/C/C $(@:test100r-%.png=-%) -s 100

test100i-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cl rgb:40/00/A0 -cd rgb:F/F/F $(@:test100i-%.png=-%) -s 100

test100ir-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cl rgb:40/00/A0 -cd rgb:F/C/C $(@:test100ir-%.png=-%) -s 100

test100k-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cd rgb:40/00/A0 -cb black $(@:test100k-%.png=-%) -s 100

test100ik-%.png: ../kill-comp.epsf ../epsf2png
	../epsf2png $< -o $@ \
		-cl rgb:40/00/A0 -cd rgb:F/F/F -cb black $(@:test100ik-%.png=-%) -s 100
