COMPILER := ghc -O2 -rtsopts -prof -fprof-auto
ALL_DAYS := $(wildcard Day*.hs)
DAYS := $(ALL_DAYS:.hs=)

all: $(DAYS)

Day%: Day%.hs Aoc.hs
	$(COMPILER) $@.hs

.PHONY: clean
clean:
	rm -f *.o *.hi *.prof $(DAYS)