TARGETS = \
	HelloWorld \
	MiseRafturai \
	Implanted \
	ImplantedSmall \
	Multipart \
	SSL \
	$(NULL)

build: $(TARGETS)

%: %.hs
	ghc --make $@ -threaded -O3 -fwarn-unused-imports

run: build
	./HelloWorld

clean:
	rm -f $(TARGETS) *.hi *.o MiseRafturai.hs SmallFile.hs

MiseRafturai.hs: mise-rafturai.html
	lucu-implant-file -m MiseRafturai -o $@ $<

ImplantedSmall.hs: SmallFile.hs

SmallFile.hs: small-file.txt
	lucu-implant-file -m SmallFile -o $@ $<

.PHONY: build run clean
