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:
Christian Felder committed 2019-09-07 19:42:41 +02:00
1 parent 30cbb00915
commit 82025e7dbe
1 file changed
+2 -2
+2 -2
View File
@@ -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 $@