Blame view

Makefile 620 Bytes
Georg Hopp authored
1 2 3
APP_NAME = steffers.org
APP_VERSION = 0.0.1
4
GOPATH = $(PWD)
Georg Hopp authored
5 6 7 8 9 10 11 12 13 14 15 16 17
GOPROJECT = gitlab.weird-web-workers.org/ghopp/$(APP_NAME)
GOEXE = $(GOPATH)/bin/$(APP_NAME)

DOCKER_IMAGE_NAME = ghopp/$(APP_NAME)
DOCKER_IMAGE_VERSION = 0.0.1
DOCKER_IMAGE_TAG = $(DOCKER_IMAGE_NAME)-$(APP_VERSION):$(DOCKER_IMAGE_VERSION)

export APP_NAME DOCKER_IMAGE_TAG GOEXE

.PHONY: all clean docker react

all: docker
18 19
$(GOEXE): $(GOPATH)/src/$(GOPROJECT)/main.go
	GOPATH=$(GOPATH) go install $(GOPROJECT)
20
	strip $@
Georg Hopp authored
21 22 23 24 25 26 27 28 29 30 31

docker: react $(GOEXE)
	$(MAKE) -C $@

react:
	$(MAKE) -C $@

clean:
	$(MAKE) -C docker clean
	$(MAKE) -C react clean
	rm -Rf $(GOEXE)