--- linuxsampler/trunk/src/network/Makefile.am 2007/06/18 08:47:15 1244 +++ linuxsampler/trunk/src/network/Makefile.am 2007/06/19 15:54:13 1245 @@ -12,10 +12,23 @@ lscpresultset.cpp lscpresultset.h \ lscpevent.cpp lscpevent.h -EXTRA_DIST = lscp.y +yacc_sources = lscp.y + +EXTRA_DIST = $(yacc_sources) + +# automatically (re)generate lscpsymbols.h with bison / yacc if the +# yacc source file(s) have been changed +lscpsymbols.h: $(yacc_sources) + $(top_builddir)/scripts/generate_parser.sh + +# automatically (re)generate lscpparser.cpp with bison / yacc if the +# yacc source file(s) have been changed +lscpparser.cpp: $(yacc_sources) + $(top_builddir)/scripts/generate_parser.sh + .PHONY: parser -# generate parser with bison / yacc +# "make parser" was explicitly requested parser: $(top_builddir)/scripts/generate_parser.sh