summaryrefslogtreecommitdiff
path: root/2020/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-12-05 15:31:31 +0100
committerTom Smeding <tom.smeding@gmail.com>2020-12-05 15:31:31 +0100
commit99a1e56c593774805ed62d3811c963bfca5fbf32 (patch)
tree1efdf21fea575f7f60d48827610a095103eab792 /2020/Makefile
parent08993f477cd22ebc00e651def6cc6268b50d2e6a (diff)
Simplify hs dependency stuff in Makefile
Diffstat (limited to '2020/Makefile')
-rw-r--r--2020/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/2020/Makefile b/2020/Makefile
index 0b1c54f..340e2ce 100644
--- a/2020/Makefile
+++ b/2020/Makefile
@@ -37,7 +37,6 @@ $(OBJDIR)/%:
.depend_hs: $(HASKELL_SRC) $(HASKELL_AUX)
ghc -dep-suffix '' -dep-makefile $@ -M $(GHCBASEFLAGS) $(HASKELL_SRC)
rm -f .depend_hs.bak
- sed 's/\.o *:/:/; s/\.hi$$/.hs/g; s/\.hi[ \t]/.hs/g' <$@ >$@.tmp
- mv $@.tmp $@
+ sed -i 's/\.o *:/:/; s/\.hi$$/.hs/g; s/\.hi[ \t]/.hs/g' $@
-include .depend_hs