Commit a02d1c39857a664ba99f164129082e48f7f5a3f8
1 parent
c1914484
build go application within this projects directories
Showing
2 changed files
with
3 additions
and
3 deletions
| 1 | 1 | APP_NAME = steffers.org |
| 2 | 2 | APP_VERSION = 0.0.1 |
| 3 | 3 | |
| 4 | -GOPATH ?= $(HOME)/go | |
| 4 | +GOPATH = $(PWD) | |
| 5 | 5 | GOPROJECT = gitlab.weird-web-workers.org/ghopp/$(APP_NAME) |
| 6 | 6 | GOEXE = $(GOPATH)/bin/$(APP_NAME) |
| 7 | 7 | |
| ... | ... | @@ -15,8 +15,8 @@ export APP_NAME DOCKER_IMAGE_TAG GOEXE |
| 15 | 15 | |
| 16 | 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 | 20 | strip $@ |
| 21 | 21 | |
| 22 | 22 | docker: react $(GOEXE) | ... | ... |
Please
register
or
login
to post a comment