From b6bea6d30dccaaaf5fa93e9bb60e805f667e7636 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Sun, 28 Jul 2019 13:19:54 +1000 Subject: [PATCH] Fix build target for Windows. Add UI target --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08914d55c..b3c2e12e1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ +ifeq ($(OS),Windows_NT) + SEPARATOR := && + SET := set +endif + build: - CGO_ENABLED=1 packr2 build -mod=vendor -v + $(SET) CGO_ENABLED=1 $(SEPARATOR) packr2 build -mod=vendor -v install: packr2 install @@ -26,3 +31,7 @@ vet: .PHONY: lint lint: revive -config revive.toml -exclude ./vendor/... ./... + +.PHONY: ui +ui: + cd ui/v2 && yarn build