TAMPIO = docker compose run --rm tampio tampio -i -p

EXAMPLES = \
	examples/basics/hello.html \
	examples/basics/factorial.html \
	examples/basics/fibonacci.html \
	examples/basics/index.html \
	examples/data-structures/lista.html \
	examples/data-structures/vektori.html \
	examples/strings/merkkijono.html \
	examples/async/nappi.html \
	examples/program/kasvutaulukko.html

.PHONY: all clean

all: $(EXAMPLES)

%.html: %.itp
	$(TAMPIO) $< 2>/dev/null > $@

clean:
	rm -f $(EXAMPLES)
