From ec6e98f6aed5684131a0fd42ed1d47864eb821aa Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 2 Dec 2024 00:01:56 +0100 Subject: 2024 --- 2024/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 2024/Makefile (limited to '2024/Makefile') diff --git a/2024/Makefile b/2024/Makefile new file mode 100644 index 0000000..0d5001f --- /dev/null +++ b/2024/Makefile @@ -0,0 +1,16 @@ +HS_SRC := $(wildcard *.hs) +HS_EXE := $(HS_SRC:.hs=) +OBJDIR := .obj + +.PHONY: all clean + +all: $(HS_EXE) + +clean: + rm -rf $(HS_EXE) $(OBJDIR) + +$(HS_EXE): %: %.hs | $(OBJDIR) + ghc -Wall -hidir $(OBJDIR) -odir $(OBJDIR) -o $@ $< + +$(OBJDIR): + mkdir $(OBJDIR) -- cgit v1.2.3-70-g09d2