advent-of-code/Makefile
2024-12-04 17:21:12 +11:00

14 lines
245 B
Makefile

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