diff --git a/makefiles/targets.mk b/makefiles/targets.mk index e82045b..a9b8e3d 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -59,7 +59,7 @@ warn-jobs: nimbus-build-system-paths: echo "Creating nimbus-build-system.paths"; \ - "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/create_nbs_paths.sh" + TOP_LEVEL_DIR="$(CURDIR)" "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/create_nbs_paths.sh" deps-common: | sanity-checks warn-update warn-jobs $(NIMBLE_DIR) # - don't build our Nim target if it's not going to be used diff --git a/scripts/create_nbs_paths.sh b/scripts/create_nbs_paths.sh index f463ad4..7c42c70 100755 --- a/scripts/create_nbs_paths.sh +++ b/scripts/create_nbs_paths.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -cd "${ABS_PATH}/../../.." +cd "$TOP_LEVEL_DIR" echo "--noNimblePath" > nimbus-build-system.paths for file in $(ls -d $PWD/vendor/*)