Fix build target for Windows. Add UI target

This commit is contained in:
WithoutPants 2019-07-28 13:19:54 +10:00 committed by StashAppDev
parent 7a3325466d
commit b6bea6d30d
1 changed files with 10 additions and 1 deletions

View File

@ -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