浏览代码

support Generate basic structs for all kinds of languages.

Usage:

make [all] : generates for all languages supported.
make < go | python | >	: generates for specific language.
make clean : remove all generated files.
make help : show this message.
joe 4 年之前
父节点
当前提交
7d1e97e501
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      Makefile

+ 12 - 2
Makefile

@@ -2,7 +2,7 @@
 # protoc is required:
 # pacman -S protoc
 # apt install protoc
-.PHONY: all go python clean
+.PHONY: all go python clean help
 
 all: go python
 
@@ -16,4 +16,14 @@ python:
 
 clean:
 	-@rm *_pb2.py
-	-@rm *.pb.go
+	-@rm *.pb.go
+
+help:
+	@echo Generate basic structs for all kinds of languages.
+	@echo 
+	@echo Usage:
+	@echo
+	@echo make [all]				: generates for all languages supported.
+	@echo make "< go | python | >	: generates for specific language."
+	@echo make clean				: remove all generated files.
+	@echo make help					: show this message.