1# Copyright 2018 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/include/chromeos/dbus/smbprovider 11PROTO_DEFS = $(PROTO_PATH)/directory_entry.proto 12PROTO_BINDINGS = $(OUT_DIR)/directory_entry_pb2.py 13 14all: $(PROTO_BINDINGS) 15 16$(PROTO_BINDINGS): $(PROTO_DEFS) 17 protoc --proto_path=$(PROTO_PATH) --python_out=$(OUT_DIR) $(PROTO_DEFS) 18 19clean: 20 rm -f $(PROTO_BINDINGS)