Damien Martin-Guillerez | 336b708 | 2015-02-26 10:18:09 +0000 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | genquery( |
| 4 | name = "genquery", |
| 5 | expression = "deps(//tools/defaults:jdk)", |
| 6 | scope = ["//tools/defaults:jdk"], |
| 7 | ) |
| 8 | |
| 9 | genrule( |
| 10 | name = "genrule", |
| 11 | srcs = [":genquery"], |
| 12 | outs = ["genrule.txt"], |
| 13 | cmd = "cat $(SRCS) > $@", |
| 14 | ) |
Damien Martin-Guillerez | 5cbd5a4 | 2015-03-24 21:55:19 +0000 | [diff] [blame] | 15 | |
| 16 | filegroup( |
| 17 | name = "srcs", |
| 18 | srcs = [ |
| 19 | "BUILD", |
Damien Martin-Guillerez | 5cbd5a4 | 2015-03-24 21:55:19 +0000 | [diff] [blame] | 20 | ], |
| 21 | ) |