summaryrefslogtreecommitdiffstats
path: root/dimension/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/Makefile.am')
-rw-r--r--dimension/Makefile.am16
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 \