summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/libglusterfs/src/Makefile.am b/libglusterfs/src/Makefile.am
index a950e67d1fa..98be5b2d906 100644
--- a/libglusterfs/src/Makefile.am
+++ b/libglusterfs/src/Makefile.am
@@ -35,10 +35,13 @@ noinst_HEADERS = common-utils.h defaults.h dict.h glusterfs.h hashfn.h \
EXTRA_DIST = graph.l graph.y
-graph.lex.c: graph.l y.tab.h
+graph.lex.c: graph.l yacc.stamp
$(LEX) -t $(srcdir)/graph.l > $@
+yacc.stamp: y.tab.c y.tab.h
+ touch $@
+
y.tab.c y.tab.h: graph.y
$(YACC) -d $(srcdir)/graph.y
-CLEANFILES = graph.lex.c y.tab.c y.tab.h
+CLEANFILES = graph.lex.c y.tab.c y.tab.h yacc.stamp