From f25d07b2f74150a5402fc34201beb34e2f5e99e0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 15 Sep 2022 06:57:34 -0700 Subject: 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3