summaryrefslogtreecommitdiffstats
path: root/Makefile
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
commitb058a4d8443084c25ae8ed0cb152c26951f69cbf (patch)
treefb3155a100c31ff3813f5ba49a5322a325fc665e /Makefile
parentb82107396897d539fbd363887b88df82bc73368d (diff)
downloadtxr-b058a4d8443084c25ae8ed0cb152c26951f69cbf.tar.gz
txr-b058a4d8443084c25ae8ed0cb152c26951f69cbf.tar.bz2
txr-b058a4d8443084c25ae8ed0cb152c26951f69cbf.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.
Diffstat (limited to 'Makefile')
-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)