From 82025e7dbe0d01c587deb145cb9b2375fdaa5bc3 Mon Sep 17 00:00:00 2001 From: Christian Felder Date: Sat, 7 Sep 2019 13:51:22 +0200 Subject: 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4f51adb67..e32f42631 100644 --- a/Makefile +++ b/Makefile @@ -136,8 +136,8 @@ help: .gopathok: ifeq ("$(wildcard $(GOPKGDIR))","") mkdir -p "$(GOPKGBASEDIR)" - ln -sfnT "$(CURDIR)" "$(GOPKGDIR)" - ln -sfnT "$(CURDIR)/vendor/github.com/varlink" "$(FIRST_GOPATH)/src/github.com/varlink" + ln -sfn "$(CURDIR)" "$(GOPKGDIR)" + ln -sfn "$(CURDIR)/vendor/github.com/varlink" "$(FIRST_GOPATH)/src/github.com/varlink" endif touch $@ -- cgit v1.2.3-54-g00ecf