Skip to content

Commit 01af8a3

Browse files
committed
Fix 'make verify' command
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
1 parent 6c59e94 commit 01af8a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/generate-verify/02_mod.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generate: $$(shared_generate_targets)
2727
@echo "The following targets cannot be run simultaneously with each other or other generate scripts:"
2828
$(foreach TARGET,$(shared_generate_targets_dirty),$(MAKE) $(TARGET)$(_generate_verify_newline))
2929

30-
verify_script := $(dir $(lastword $(MAKEFILE_LIST)))/util/verify.sh
30+
verify_script := $(dir $(lastword $(MAKEFILE_LIST)))util/verify.sh
3131

3232
# Run the supplied make target argument in a temporary workspace and diff the results.
3333
verify-%: FORCE

modules/generate-verify/util/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set -o errexit
3131
set -o nounset
3232
set -o pipefail
3333

34-
projectdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../../.." && pwd )"
34+
projectdir="$(git rev-parse --show-toplevel)"
3535

3636
cd "${projectdir}"
3737

0 commit comments

Comments
 (0)