From 5c53b57978c85d1fec24b39accfe17487c3de583 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Thu, 2 Apr 2015 05:36:42 +0900 Subject: Implement order-only dependency --- exec.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'exec.go') diff --git a/exec.go b/exec.go index 4cd612e..af4a191 100644 --- a/exec.go +++ b/exec.go @@ -177,6 +177,19 @@ func (ex *Executor) build(vars map[string]string, output string) (int64, error) } } + for _, input := range rule.orderOnlyInputs { + if exists(input) { + continue + } + ts, err := ex.build(vars, input) + if err != nil { + return outputTs, err + } + if latest < ts { + latest = ts + } + } + if outputTs >= latest { return outputTs, nil } -- cgit v1.2.3