summaryrefslogtreecommitdiffstats
path: root/Makefile
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
commit8ca41d8efe17a932e0fe13782021f7430f188568 (patch)
treeb57e2de496c28b1db758bb8ad282faa7b3f8546c /Makefile
parentb189e47c56bab8158cc82f2f5dae96319e0d65dd (diff)
downloadtxr-8ca41d8efe17a932e0fe13782021f7430f188568.tar.gz
txr-8ca41d8efe17a932e0fe13782021f7430f188568.tar.bz2
txr-8ca41d8efe17a932e0fe13782021f7430f188568.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.
Diffstat (limited to 'Makefile')
-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