Update Makefile

This commit is contained in:
germax26 2024-12-04 17:21:12 +11:00
parent 3234c7963b
commit f298b13537
Signed by: germax26
SSH Key Fingerprint: SHA256:N3w+8798IMWBt7SYH8G1C0iJlIa2HIIcRCXwILT5FvM

View File

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