diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-12-02 00:01:56 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-12-02 00:02:22 +0100 |
commit | ec6e98f6aed5684131a0fd42ed1d47864eb821aa (patch) | |
tree | 6e96c6e3aee0257f17b89c1a7a78dd1ead6cc09a /2024/Makefile | |
parent | c0ed02a358e658b12287437a446513f9fab2cd5d (diff) |
2024
Diffstat (limited to '2024/Makefile')
-rw-r--r-- | 2024/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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) |