1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5ifndef SYSROOT 6 $(error Define SYSROOT) 7endif 8 9OUT_DIR ?= . 10PROTO_PATH = $(SYSROOT)/usr/share/protofiles 11PROTO_DEFS = $(PROTO_PATH)/chrome_device_policy.proto \ 12 $(PROTO_PATH)/device_management_backend.proto 13PROTO_BINDINGS = $(OUT_DIR)/chrome_device_policy_pb2.py \ 14 $(OUT_DIR)/device_management_backend_pb2.py 15 16all: $(PROTO_BINDINGS) 17 18$(PROTO_BINDINGS): $(PROTO_DEFS) 19 protoc --proto_path=$(PROTO_PATH) --python_out=$(OUT_DIR) $(PROTO_DEFS) 20 21clean: 22 rm -f $(PROTO_BINDINGS) 23