summaryrefslogtreecommitdiff
path: root/2024/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-12-03 20:57:54 +0100
committerTom Smeding <tom@tomsmeding.com>2026-12-03 20:57:54 +0100
commit8a6da5a43818f221104fa2a9049d54e445620718 (patch)
tree1ae1d99dabfabc16ac386906818143bc9ae66644 /2024/Makefile
parentf914e5be6fd03bcdbb0defd3eefd9dba1501e2e6 (diff)
Diffstat (limited to '2024/Makefile')
-rw-r--r--2024/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/2024/Makefile b/2024/Makefile
index 97c6c1c..3680aa9 100644
--- a/2024/Makefile
+++ b/2024/Makefile
@@ -15,7 +15,7 @@ $(C_EXE): %: %.c
gcc -Wall -Wextra -std=c23 -O2 -o $@ $<
$(HS_EXE): %: %.hs | $(OBJDIR)
- ghc -Wall -hidir $(OBJDIR) -odir $(OBJDIR) -o $@ $<
+ ghc -Wall -hidir $(OBJDIR) -hisuf $@.hi -odir $(OBJDIR) -osuf $@.o -o $@ $<
$(OBJDIR):
- mkdir $(OBJDIR)
+ @mkdir $@