summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-08-07 23:42:17 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-08-07 23:42:17 +0200
commit4cd6266222fd614e11f52ca2244157e7b714c8df (patch)
treec7673b5747df1c83f4802461af792e1bf7bac1f3 /Makefile
parentdbe330b8796ca9f403b5d5fe2133726ba504a803 (diff)
[pkg] fixup symlink
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index bdfbcea..b32aea6 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,14 @@ VERSION ?= $(shell git describe)
# go paths
GOPATH = $(shell go env GOPATH)
-SYSTRAY = "0xacab.org/leap/bitmask-vpn"
+SYSTRAY = 0xacab.org/leap/bitmask-vpn
GOSYSTRAY = ${GOPATH}/src/${SYSTRAY}
# detect OS, we use it for dependencies
UNAME = `uname`
-TEMPLATES = "branding/templates"
-SCRIPTS = "branding/scripts"
+TEMPLATES = branding/templates
+SCRIPTS = branding/scripts
all: icon locales build
@@ -47,12 +47,17 @@ dependsCygwin:
get:
-@mkdir -p ${GOPATH}/src/0xacab.org/leap
- -@ln -s `pwd` ${GOSYSTRAY}
+ifeq (,$(wildcard ${GOSYSTRAY}))
+else
+ @rm -rf ${GOSYSTRAY}
+endif
+ @ln -s `pwd` ${GOSYSTRAY}
@cd ${GOSYSTRAY} && go get -tags $(TAGS) ./...
@cd ${GOSYSTRAY} && go get -tags "$(TAGS) bitmaskd" ./...
+ @echo "Done with go get."
-# when we can depend on go 1.11 we don't need the get step anymore
+# when we can depend on go 1.11 we don't need the get step anymore
build: get $(foreach path,$(wildcard cmd/*),build_$(patsubst cmd/%,%,$(path))) build_done
build_%: