Adding dev support in make file

This commit is contained in:
Emil Palm 2019-01-08 10:15:05 +01:00
parent 0aa66b8c01
commit bc09e62091
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,9 @@ client_prod:
backend_dev: client_dev
$(MAKE) -C backend/
dev:
$(MAKE) -C backend/ osx-dev
backend_prod: client_prod
$(MAKE) -C backend/ bundle

View File

@ -21,6 +21,7 @@ endif
LDFLAGS=-ldflags="-X main.version=$(APP_VERSION)"
FILES=$(shell find . -depth 1 ! -name "*_test.go" -name "*.go")
all: $(TARGET)
@echo "Built $(VERSION) @ $(TARGET)"
@ -28,6 +29,9 @@ all: $(TARGET)
deps:
go get -v .
osx-dev: deps
go run $(FILES)
osx: deps
GOARCH=$(ARCH) GOOS=darwin go build $(LDFLAGS) -o $(PROG)-osx-$(ARCH)