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:
parent
30cbb00915
commit
82025e7dbe
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 $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue