mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Fixup Makefile for BSD systems, e.g. macOS
The bsd variant of `ln` does not support the ``-T`` option. Testing for existence using wildcard before creating new symlinks should be sufficient here. Furthermore the target directory is managed internally by this Makefile anyway. Signed-off-by: Christian Felder <c.felder@fz-juelich.de>
This commit is contained in:
4
Makefile
4
Makefile
@ -136,8 +136,8 @@ help:
|
|||||||
.gopathok:
|
.gopathok:
|
||||||
ifeq ("$(wildcard $(GOPKGDIR))","")
|
ifeq ("$(wildcard $(GOPKGDIR))","")
|
||||||
mkdir -p "$(GOPKGBASEDIR)"
|
mkdir -p "$(GOPKGBASEDIR)"
|
||||||
ln -sfnT "$(CURDIR)" "$(GOPKGDIR)"
|
ln -sfn "$(CURDIR)" "$(GOPKGDIR)"
|
||||||
ln -sfnT "$(CURDIR)/vendor/github.com/varlink" "$(FIRST_GOPATH)/src/github.com/varlink"
|
ln -sfn "$(CURDIR)/vendor/github.com/varlink" "$(FIRST_GOPATH)/src/github.com/varlink"
|
||||||
endif
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user