advent-of-code/Makefile
2024-12-03 00:29:42 +11:00

12 lines
170 B
Makefile

HS_SRCS = $(shell find . -name 'day*.hs')
HS_TARGETS = $(HS_SRCS:.hs=)
all: $(HS_TARGETS)
%: %.hs
ghc $<
clean: $(HS_TARGETS)
rm -rf $(HS_TARGETS)
.PHONY: all clean