summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8fba672..9f11a76 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@
TAGS ?= gtk_3_18
+PROVIDER ?= $(shell grep ^'provider =' branding/config/vendor.conf | cut -d '=' -f 2 | tr -d "[:space:]")
+DEFAULT_PROVIDER = branding/assets/default/
+
all: icon locales get build
get:
@@ -11,6 +14,15 @@ get:
generate:
go generate cmd/bitmask-vpn/main.go
+relink_default:
+ifneq (,$(wildcard ${DEFAULT_PROVIDER}))
+ cd branding/assets && unlink default
+endif
+ cd branding/assets && ln -s ${PROVIDER} default
+
+prepare: generate relink_default
+ branding/scripts/check-ca-crt.py ${PROVIDER} branding/config/vendor.conf
+
build: $(foreach path,$(wildcard cmd/*),build_$(patsubst cmd/%,%,$(path)))
build_%: