diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-12 20:01:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-12 20:01:55 -0700 |
commit | 0320ea2616792feaeadf9aa2857debc33417f30f (patch) | |
tree | fb3155a100c31ff3813f5ba49a5322a325fc665e | |
parent | b395c60f80797e3154cb7954026b1c1ea62d1aec (diff) | |
download | txr-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |