Skip to content

Commit 82fe0db

Browse files
committed
Fix bad make protos failure
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent ed56406 commit 82fe0db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ protos: bin/protoc-gen-gogoctrd ## generate protobuf
160160
@echo "$(WHALE) $@"
161161
@find . -path ./vendor -prune -false -o -name '*.pb.go' | xargs rm
162162
$(eval TMPDIR := $(shell mktemp -d))
163-
@mv ${ROOTDIR}/vendor $TMPDIR
163+
@mv ${ROOTDIR}/vendor ${TMPDIR}
164164
@(cd ${ROOTDIR}/api && PATH="${ROOTDIR}/bin:${PATH}" protobuild --quiet ${API_PACKAGES})
165165
@(PATH="${ROOTDIR}/bin:${PATH}" protobuild --quiet ${NON_API_PACKAGES})
166-
@mv $TMPDIR ${ROOTDIR}/vendor
167-
@rm -rf $TMPDIR
166+
@mv ${TMPDIR}/vendor ${ROOTDIR}
167+
@rm -rf ${TMPDIR}
168168

169169
check-protos: protos ## check if protobufs needs to be generated again
170170
@echo "$(WHALE) $@"

0 commit comments

Comments
 (0)