summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-09-15 06:57:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-09-15 06:57:34 -0700
commitf25d07b2f74150a5402fc34201beb34e2f5e99e0 (patch)
treeb57e2de496c28b1db758bb8ad282faa7b3f8546c
parent17dcbe08ef36ff4f8cda12184dc1e9a1465ca825 (diff)
downloadtxr-f25d07b2f74150a5402fc34201beb34e2f5e99e0.tar.gz
txr-f25d07b2f74150a5402fc34201beb34e2f5e99e0.tar.bz2
txr-f25d07b2f74150a5402fc34201beb34e2f5e99e0.zip
build: remove .tlo.tmp file before compiling.
* Makefile (COMPILE_TL): Before we invoke txr --compile, let's make sure there isn't a .tmp file left over by a previous failed compile job. Otherwise --compile will consider that to be an up-to-date compiled file due to its newer timestamp relative to the .tl file, and we end up renaming that to .tlo.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b038f556..f55b0750 100644
--- a/Makefile
+++ b/Makefile
@@ -160,6 +160,7 @@ endef
define COMPILE_TL
$(call ABBREV,TXR)
+$(call SH,rm -f $@.tmp)
$(call SH,$(TXR) --in-package=sys --compile=$<:$@.tmp)
$(call SH,mv $@.tmp $@)
endef