Fix make install when sudo does not set PWD

Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
This commit is contained in:
Timothy Middelkoop
2025-01-30 22:55:06 +00:00
committed by Jonathon Anderson
parent 15249c5e83
commit 84ff9800ff
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ CONFIG := $(shell pwd)
IPXESOURCE ?= $(PREFIX)/share/ipxe
# helper functions
godeps=$(shell 2>/dev/null go list -mod vendor -deps -f '{{if not .Standard}}{{ $$dep := . }}{{range .GoFiles}}{{$$dep.Dir}}/{{.}} {{end}}{{end}}' $(1) | sed "s%${PWD}/%%g")
godeps=$(shell 2>/dev/null go list -mod vendor -deps -f '{{if not .Standard}}{{ $$dep := . }}{{range .GoFiles}}{{$$dep.Dir}}/{{.}} {{end}}{{end}}' $(1) | sed "s%$(shell pwd)/%%g")
# use GOPROXY for older git clients and speed up downloads
GOPROXY ?= https://proxy.golang.org