Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamise-gpsw committed Apr 19, 2024
1 parent eeb63d6 commit faeedf3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ PROTO_BUILD_DIR=.build/protobuf/python/*
PYTHON_TUTORIAL_PROTO_DIR=demos/python/tutorial/tutorial_modules/tutorial_5_ble_protobuf/proto
PYTHON_SDK_PROTO_DIR=demos/python/sdk_wireless_camera_control/open_gopro/proto

.PHONY: help
help: ## Display this help which is generated from Make goal comments
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: protos
protos: ## Build generated code from protobuf files
@docker compose run --build --rm proto-build
@rm -rf ${PYTHON_TUTORIAL_PROTO_DIR}/*pb2.py* && mkdir -p ${PYTHON_TUTORIAL_PROTO_DIR}
@cp ${PROTO_BUILD_DIR} ${PYTHON_TUTORIAL_PROTO_DIR}
@rm -rf ${PYTHON_SDK_PROTO_DIR}/*pb2.py* && mkdir -p ${PYTHON_SDK_PROTO_DIR}
@cp ${PROTO_BUILD_DIR} ${PYTHON_SDK_PROTO_DIR}

.PHONY: copyright
copyright: ## Check for and add missing copyrights
@echo "©️ Verifying / adding copyrights..."
@.admin/copyright -i . $(ORIGINAL_VERSION)

0 comments on commit faeedf3

Please sign in to comment.