14 lines
245 B
Makefile
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 |