From ec598bfe3bd352dcf725f18b8ef791895852e828 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Mon, 10 Aug 2020 01:33:36 -0400 Subject: [PATCH] Fix build: - Fix submodule check - Fix missing dependency on golang.org/x/sys/unix --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d449d5..73d940b 100644 --- a/Makefile +++ b/Makefile @@ -9,14 +9,14 @@ HOSTNAME=`hostname` all: hdfs-mount -hdfs-mount: *.go $(GOPATH)/src/bazil.org/fuse $(GOPATH)/src/github.com/colinmarc/hdfs $(GOPATH)/src/golang.org/x/net/context $(GOPATH)/src/github.com/golang/protobuf/proto +hdfs-mount: *.go $(GOPATH)/src/bazil.org/fuse $(GOPATH)/src/github.com/colinmarc/hdfs $(GOPATH)/src/golang.org/x/net/context $(GOPATH)/src/github.com/golang/protobuf/proto $(GOPATH)/src/golang.org/x/sys/unix go build -ldflags="-w -X main.GITCOMMIT=${GITCOMMIT} -X main.BUILDTIME=${BUILDTIME} -X main.HOSTNAME=${HOSTNAME}" -o hdfs-mount $(GOPATH)/src/bazil.org/fuse: $(GOPATH)/src/github.com/bazil/fuse ln -s $(GOPATH)/src/github.com/bazil $(GOPATH)/src/bazil.org $(GOPATH)/src/github.com/colinmarc/hdfs: - [ -f submodules/colinmarc-hdfs/.git ] || { echo "ERROR: Please clone hdfs-mount repository recursively: git clone http://github.com/Microsoft/hdfs-mount --recursive"; exit 1; } + [ -d submodules/colinmarc-hdfs/.git ] || { echo "ERROR: Please clone hdfs-mount repository recursively: git clone http://github.com/Microsoft/hdfs-mount --recursive"; exit 1; } mkdir -p $(shell dirname $@) ln -s ../../../../submodules/colinmarc-hdfs $@