summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-12 20:01:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-12 20:01:55 -0700
commit0320ea2616792feaeadf9aa2857debc33417f30f (patch)
treefb3155a100c31ff3813f5ba49a5322a325fc665e
parentb395c60f80797e3154cb7954026b1c1ea62d1aec (diff)
downloadtxr-0320ea2616792feaeadf9aa2857debc33417f30f.tar.gz
txr-0320ea2616792feaeadf9aa2857debc33417f30f.tar.bz2
txr-0320ea2616792feaeadf9aa2857debc33417f30f.zip
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.
-rw-r--r--Makefile4
1 files 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)