From 0320ea2616792feaeadf9aa2857debc33417f30f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 12 Apr 2018 20:01:55 -0700 Subject: build: compiling Lisp requires ./txr to exist. * Makfile (%.tlo, %.tlo2): We take advantage of Gmake's order-only prerequisites to express this dependency. This means that .tlo and .tlo2 files are not considered outdated when $(PROG) is newer; it only ensures that $(PROG) cannot be missing when a .tlo or .tlo2 must be updated. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d5a8314..b8cc40fb 100644 --- a/Makefile +++ b/Makefile @@ -186,10 +186,10 @@ opt/%-win.o: $(top_srcdir)%.c win/%.res: $(top_srcdir)win/%.rc $(top_srcdir)win/%.ico $(call WINDRES) -%.tlo: %.tl +%.tlo: %.tl | $(PROG) $(call COMPILE_TL) -%.tlo2: %.tl +%.tlo2: %.tl | $(PROG) $(call COMPILE_TL) $(call SH,F=$@ T=$${F%.tlo2}.tlo; cmp -s $$F $$T || cp $$F $$T) -- cgit v1.2.3