PROGS = upload.fcgi download.fcgi printinput.fcgi hello.fcgi GHCFLAGS = -package fastcgi -fwarn-unused-imports .PHONY: all clean all: $(PROGS) %.fcgi: %.hs ghc $(GHCFLAGS) --make -o $@ $^ clean: -rm -f *.hi *.o -rm -f $(PROGS)