diff options
author | Christian Felder <c.felder@fz-juelich.de> | 2019-09-07 13:51:22 +0200 |
---|---|---|
committer | Christian Felder <c.felder@fz-juelich.de> | 2019-09-07 19:42:41 +0200 |
commit | 82025e7dbe0d01c587deb145cb9b2375fdaa5bc3 (patch) | |
tree | d9c57cbcf63743833f8656a536eee341be0464ed | |
parent | 30cbb0091515a7f802f0f3f3ee486be6ff98f645 (diff) | |
download | podman-82025e7dbe0d01c587deb145cb9b2375fdaa5bc3.tar.gz podman-82025e7dbe0d01c587deb145cb9b2375fdaa5bc3.tar.bz2 podman-82025e7dbe0d01c587deb145cb9b2375fdaa5bc3.zip |
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>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@ |