Skip to content

Commit e276a3f

Browse files
committed
Makefile: improve setup-build action
1 parent a0a1fe3 commit e276a3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ ALL_BUILDS=$(patsubst %, build/%, $(ALL_ARCHES))
478478

479479
setup-build: FORCE
480480
rm -rf build
481-
@if [ ! -d .git ]; then echo "build-setup is only available for git checkouts"; exit 2; fi
481+
@if [ ! git status >/dev/null 2>&1 ]; then echo "setup-build is only available for git checkouts"; exit 2; fi
482482
@for a in $(ALL_ARCHES); do \
483483
echo "Setting up build/$$a"; \
484484
tools/linkhier build/$$a; \

0 commit comments

Comments
 (0)