commit | 5c53b57978c85d1fec24b39accfe17487c3de583 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Apr 02 05:36:42 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Apr 02 05:36:42 2015 +0900 |
tree | 65cdbf25573c4661e685ffc24798d6efd7e64a32 | |
parent | 5fc295ff9ae79a6f7f23ddb57bab798551a90708 [diff] [blame] |
Implement order-only dependency
diff --git a/rule_parser_test.go b/rule_parser_test.go index dbc166e..f44c589 100644 --- a/rule_parser_test.go +++ b/rule_parser_test.go
@@ -72,6 +72,14 @@ in: "foo.o: foo.o: %.c", err: "*** target pattern contains no '%'.", }, + { + in: "foo: bar | baz", + want: Rule{ + outputs: []string{"foo"}, + inputs: []string{"bar"}, + orderOnlyInputs: []string{"baz"}, + }, + }, /* TODO { in: "foo.o: %.c: %.c",