diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-01-29 18:59:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-01-29 19:08:00 -0500 |
commit | 557dfdbb9b770f755feae04afe9aaef60d63ada3 (patch) | |
tree | 2bfa8fdc63f36c267ee419e3413066c79f95e7f8 /dimension/Makefile.am | |
parent | e310c2cf9bdfcf86cbd1294567905f537832a488 (diff) | |
download | dimension-557dfdbb9b770f755feae04afe9aaef60d63ada3.tar.xz |
Split grammar.y to allow code re-use.
Diffstat (limited to 'dimension/Makefile.am')
-rw-r--r-- | dimension/Makefile.am | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dimension/Makefile.am b/dimension/Makefile.am index 1d18374..1ee125c 100644 --- a/dimension/Makefile.am +++ b/dimension/Makefile.am @@ -23,6 +23,22 @@ bin_PROGRAMS = dimension AM_YFLAGS = -d BUILT_SOURCES = grammar.h +EXTRA_DIST = grammar.prologue \ + grammar.declarations \ + grammar.terminals \ + grammar.nonterminals \ + grammar.rules \ + grammar.epilogue + +grammar.y: grammar.prologue grammar.declarations grammar.terminals grammar.nonterminals grammar.rules grammar.epilogue + echo "%{" >$@ + cat grammar.prologue >>$@ + echo "%}" >>$@ + cat grammar.{declarations,terminals,nonterminals} >>$@ + echo "%%" >>$@ + cat grammar.rules >>$@ + echo "%%" >>$@ + cat grammar.epilogue >>$@ dimension_SOURCES = grammar.y \ lexer.l \ |