add: some proto stuff
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
.PHONY: proto proto-deps help
|
||||
|
||||
# Default target
|
||||
all: help
|
||||
|
||||
# Generate Go code from proto files using buf
|
||||
proto: proto-deps
|
||||
@echo "Generating Go code from proto files..."
|
||||
buf generate || exit 1
|
||||
@echo "Proto generation complete!"
|
||||
|
||||
# Ensure buf is available
|
||||
proto-deps:
|
||||
@which buf >/dev/null 2>&1 || (echo "Error: buf is not installed. Please install Buf first." && exit 1)
|
||||
|
||||
# Help target
|
||||
help:
|
||||
@echo "Webstory Makefile"
|
||||
@echo ""
|
||||
@echo "Available targets:"
|
||||
@echo " make all - Show this help message"
|
||||
@echo " make proto - Generate Go code from proto files"
|
||||
@echo " make proto-deps - Ensure buf is installed"
|
||||
Reference in New Issue
Block a user