aboutsummaryrefslogtreecommitdiff
path: root/rule_parser.go
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-15 10:02:33 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-15 10:02:33 +0900
commitea170b11d8ba46879ade60c673d872fd7477dc28 (patch)
tree582ab30d88457b7f29b74568145749c0d8503838 /rule_parser.go
parent7083bfa0274042d283bd5b6f8be6482577550218 (diff)
downloadkati-ea170b11d8ba46879ade60c673d872fd7477dc28.tar.gz
hmm
Diffstat (limited to 'rule_parser.go')
-rw-r--r--rule_parser.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/rule_parser.go b/rule_parser.go
index 2199e0d..76b639f 100644
--- a/rule_parser.go
+++ b/rule_parser.go
@@ -5,6 +5,12 @@ import (
"strings"
)
+type TargetSpecificVar struct {
+ name string
+ v Var
+ op string
+}
+
type Rule struct {
outputs []string
inputs []string
@@ -12,7 +18,7 @@ type Rule struct {
outputPatterns []string
isDoubleColon bool
isSuffixRule bool
- vars Vars
+ vars []TargetSpecificVar
cmds []string
filename string
lineno int