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 2019-09-07 13:51:22 +02:00
parent 30cbb00915
commit 82025e7dbe
1 changed files with 2 additions and 2 deletions

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 $@