Skip to content

Commit 937d04b

Browse files
authored
fix: use CURDIR for Zoekt build output in Makefile (#1096)
The shell variable PWD is not set by GNU Make and is often empty on Windows, which broke go build -o paths. Use Make built-in CURDIR instead. Fixes #1095
1 parent 355509b commit 937d04b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ yarn:
99

1010
zoekt:
1111
mkdir -p bin
12-
go build -C vendor/zoekt -o $(PWD)/bin ./cmd/...
13-
export PATH="$(PWD)/bin:$(PATH)"
12+
go build -C vendor/zoekt -o $(CURDIR)/bin ./cmd/...
13+
export PATH="$(CURDIR)/bin:$(PATH)"
1414
export CTAGS_COMMANDS=ctags
1515

1616
clean:

0 commit comments

Comments
 (0)