Commit a02d1c39857a664ba99f164129082e48f7f5a3f8

Authored by Georg Hopp
1 parent c1914484

build go application within this projects directories

1 APP_NAME = steffers.org 1 APP_NAME = steffers.org
2 APP_VERSION = 0.0.1 2 APP_VERSION = 0.0.1
3 3
4 -GOPATH ?= $(HOME)/go 4 +GOPATH = $(PWD)
5 GOPROJECT = gitlab.weird-web-workers.org/ghopp/$(APP_NAME) 5 GOPROJECT = gitlab.weird-web-workers.org/ghopp/$(APP_NAME)
6 GOEXE = $(GOPATH)/bin/$(APP_NAME) 6 GOEXE = $(GOPATH)/bin/$(APP_NAME)
7 7
@@ -15,8 +15,8 @@ export APP_NAME DOCKER_IMAGE_TAG GOEXE @@ -15,8 +15,8 @@ export APP_NAME DOCKER_IMAGE_TAG GOEXE
15 15
16 all: docker 16 all: docker
17 17
18 -$(GOEXE): $(APP_NAME).go  
19 - go install $(GOPROJECT) 18 +$(GOEXE): $(GOPATH)/src/$(GOPROJECT)/main.go
  19 + GOPATH=$(GOPATH) go install $(GOPROJECT)
20 strip $@ 20 strip $@
21 21
22 docker: react $(GOEXE) 22 docker: react $(GOEXE)
Please register or login to post a comment