]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add makefile rule to generate ly grammar
authorJohn Mandereau <john.mandereau@gmail.com>
Sun, 26 Apr 2009 22:50:49 +0000 (00:50 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 26 Apr 2009 22:50:49 +0000 (00:50 +0200)
Documentation/user/GNUmakefile

index 237bb973a0426517d90417ba6d9d87ca75953f66..60e16bbd12df5651d3b5eeb4d1d3c4492a4bc2ae 100644 (file)
@@ -137,9 +137,14 @@ $(top-build-dir)/mf/$(outconfbase)/feta16list.ly:
 
 $(outdir)/lilypond.texi $(outdir)/lilypond-program.texi $(outdir)/lilypond-learning.texi $(outdir)/music-glossary.texi: $(ITELY_FILES) $(ITEXI_FILES)
 
+$(outdir)/lilypond.texi: $(outdir)/ly-grammar.txt
 
 # Rules for the automatically generated documentation
 
+$(outdir)/ly-grammar.txt: $(top-src-dir)/lily/parser.yy
+       cd $(outdir) && $(BISON) -v $<
+       $(auxscript-dir)/yyout2grammar.py $(outdir)/parser.output $@
+
 # There used to be a dependency on a dummy target, to force a rebuild
 # of lilypond-internals every time.  however, this triggers
 # compilation during install, which is a bad thing (tm).