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 | b058a4d8443084c25ae8ed0cb152c26951f69cbf (patch) | |
tree | fb3155a100c31ff3813f5ba49a5322a325fc665e /Makefile | |
parent | b82107396897d539fbd363887b88df82bc73368d (diff) | |
download | txr-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-- | 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) |