| 1 |
.PHONY: testdata-go-names |
| 2 |
testdata-names: ../../bin/protoc-gen-debug # parse the proto file sets in testdata/names and renders binary CodeGeneratorRequest + official go codegen |
| 3 |
cd testdata/names && \ |
| 4 |
set -e; for subdir in `find . -mindepth 1 -maxdepth 1 -type d`; do \ |
| 5 |
cd $$subdir; \ |
| 6 |
params=`cat params`; \ |
| 7 |
protoc -I . \ |
| 8 |
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ |
| 9 |
--debug_out=".:." \ |
| 10 |
--go_out="plugins,paths=source_relative,$$params:." \ |
| 11 |
`find . -name "*.proto"`; \ |
| 12 |
cd -; \ |
| 13 |
done |
| 14 |
|
| 15 |
testdata-packages: ../../bin/protoc-gen-debug |
| 16 |
cd testdata/packages && \ |
| 17 |
set -e; for subdir in `find . -mindepth 1 -maxdepth 1 -type d | grep -v targets`; do \ |
| 18 |
cd $$subdir; \ |
| 19 |
params=`cat params`; \ |
| 20 |
protoc -I . -I .. \ |
| 21 |
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ |
| 22 |
--debug_out=".:." \ |
| 23 |
--go_out="paths=source_relative,$$params:." \ |
| 24 |
`find . -name "*.proto"`; \ |
| 25 |
cd -; \ |
| 26 |
done |
| 27 |
|
| 28 |
testdata-outputs: ../../bin/protoc-gen-debug |
| 29 |
cd testdata/outputs && \ |
| 30 |
set -e; for subdir in `find . -mindepth 1 -maxdepth 1 -type d`; do \ |
| 31 |
cd $$subdir; \ |
| 32 |
params=`cat params`; \ |
| 33 |
protoc -I . -I .. \ |
| 34 |
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ |
| 35 |
--debug_out=".:." \ |
| 36 |
--go_out="$$params:." \ |
| 37 |
`find . -name "*.proto"`; \ |
| 38 |
cd -; \ |
| 39 |
done |
| 40 |
|
| 41 |
testdata-presence: ../../bin/protoc-gen-debug |
| 42 |
cd testdata/presence && \ |
| 43 |
set -e; for subdir in `find . -mindepth 1 -maxdepth 1 -type d`; do \ |
| 44 |
cd $$subdir; \ |
| 45 |
params=`cat params`; \ |
| 46 |
protoc -I . -I .. \ |
| 47 |
--plugin=protoc-gen-debug=../../../../../bin/protoc-gen-debug \ |
| 48 |
--debug_out=".:." \ |
| 49 |
--go_out="$$params:." \ |
| 50 |
`find . -name "*.proto"`; \ |
| 51 |
cd -; \ |
| 52 |
done |
| 53 |
|
| 54 |
../../bin/protoc-gen-debug: |
| 55 |
cd ../.. && $(MAKE) bin/protoc-gen-debug |