summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-10-03 07:20:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-10-03 07:20:22 -0700
commit54f09626d4a93296f002ed5956de008fb59a200b (patch)
tree1433c73ec5a9951bdac63bb4e72a1d3c52de2ec8 /Makefile
parent24ea2b8c11bcaa99f1e72df7fee8feb1ad80e5b1 (diff)
downloadtxr-54f09626d4a93296f002ed5956de008fb59a200b.tar.gz
txr-54f09626d4a93296f002ed5956de008fb59a200b.tar.bz2
txr-54f09626d4a93296f002ed5956de008fb59a200b.zip
* Makefile: rules that rely on values from config.make
now have config.make as a prerequisite.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c3a63a3c..7c3d5ff7 100644
--- a/Makefile
+++ b/Makefile
@@ -57,12 +57,14 @@ VPATH := $(top_srcdir)
-include $(top_srcdir)/dep.mk
-lex.yy.c: parser.l
+$(OBJS) $(OBJS-y): config.make
+
+lex.yy.c: parser.l config.make
rm -f $@
$(LEX) $(LEX_DBG_FLAGS) $<
chmod a-w $@
-y.tab.c y.tab.h: parser.y
+y.tab.c y.tab.h: parser.y config.make
rm -f y.tab.c
if $(YACC) -v -d $< ; then chmod a-w y.tab.c ; true ; else rm y.tab.c ; false ; fi