summaryrefslogtreecommitdiff
path: root/lib/Automake/Parser/automake.y
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Automake/Parser/automake.y')
-rw-r--r--lib/Automake/Parser/automake.y10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Automake/Parser/automake.y b/lib/Automake/Parser/automake.y
index 41f0e6aa6..0814d73f3 100644
--- a/lib/Automake/Parser/automake.y
+++ b/lib/Automake/Parser/automake.y
@@ -12,15 +12,19 @@ stmt : automakerule
| conditional
;
automakerule : lhs '=' optionalrhs optionalcomments
+ | lhs '+' '=' optionalrhs optionalcomments
;
makerule : value ':' rhs
;
-conditional : ifblock optionalelse endif
+conditional : ifblock optionalelse endif optionalcond
;
-ifblock : if value newline automakerule newline
+ifblock : if value newline stmts
;
optionalelse:
- | else newline automakerule newline
+ | else newline stmts
+;
+optionalcond:
+ | value
;
optionalrhs :
| rhs