Makefile 588 Bytes
APP_NAME = steffers.org
APP_VERSION = 0.0.1

GOPATH ?= $(HOME)/go
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

$(GOEXE): $(APP_NAME).go
	go install $(GOPROJECT)
	strip $@

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

react:
	$(MAKE) -C $@

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