fix(make): codegen paths to spec

This commit is contained in:
Tit Petric
2018-08-23 11:02:06 +00:00
parent 58ca01e842
commit 1fb4a8aaae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ dep: $(DEP)
$(DEP) ensure -v
codegen: $(SPEC)
./codegen.sh
@PATH=${PATH}:${GOPATH}/bin ./codegen.sh
protobuf: $(PROTOC)
# @todo this needs work (it hangs and outputs nothing)
+1 -1
View File
@@ -5,7 +5,7 @@ _PWD=$PWD
SPECS=$(find $PWD -name 'spec.json' | xargs -n1 dirname)
for SPEC in $SPECS; do
echo "=== spec $SPEC ==="
cd $SPEC && rm -rf spec && ${GOPATH}/bin/spec && cd .. && ./README.php && cd $_PWD
cd $SPEC && rm -rf spec && /usr/bin/env spec && cd .. && ./README.php && cd $_PWD
SRC=$(dirname $(dirname $SPEC))
echo "=== codegen $SRC ==="