Index: client/site_tests/login_OwnershipApi/src/Makefile |
diff --git a/client/site_tests/login_OwnershipApi/src/Makefile b/client/site_tests/login_OwnershipApi/src/Makefile |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c73291578a19f37512a9dcc9755922d94bbf18b9 |
--- /dev/null |
+++ b/client/site_tests/login_OwnershipApi/src/Makefile |
@@ -0,0 +1,20 @@ |
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+ifndef SYSROOT |
+ $(error Define SYSROOT) |
+endif |
+ |
+OUT_DIR ?= . |
+PROTO_PATH = $(SYSROOT)/usr/include/proto |
+PROTO_DEFS = $(PROTO_PATH)/device_management_backend.proto |
+PROTO_BINDINGS = $(OUT_DIR)/device_management_backend_pb2.py |
+ |
+all: $(PROTO_BINDINGS) |
+ |
+$(PROTO_BINDINGS): $(PROTO_DEFS) |
+ protoc --proto_path=$(PROTO_PATH) --python_out=$(OUT_DIR) $(PROTO_DEFS) |
+ |
+clean: |
+ rm -f $(PROTO_BINDINGS) |