Automatically generate claw constants.
Change-Id: I35d15b34e6ae8349b009cd636d5e3962f1c6af5c
diff --git a/y2014/control_loops/claw/BUILD b/y2014/control_loops/claw/BUILD
index a91462d..6f77d7a 100644
--- a/y2014/control_loops/claw/BUILD
+++ b/y2014/control_loops/claw/BUILD
@@ -25,6 +25,22 @@
],
)
+genrule(
+ name = 'genrule_claw',
+ visibility = ['//visibility:private'],
+ cmd = '$(location //y2014/control_loops/python:claw) $(OUTS)',
+ tools = [
+ '//y2014/control_loops/python:claw',
+ ],
+ tags = [
+ 'local',
+ ],
+ outs = [
+ 'claw_motor_plant.h',
+ 'claw_motor_plant.cc',
+ ],
+)
+
cc_library(
name = 'claw_lib',
srcs = [