Mercurial > gemma
comparison Makefile @ 402:20d2edbc863d
Add install target for backend and use in Dockerfile
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 14 Aug 2018 19:37:36 +0200 |
parents | 75e32633fb96 |
children | 942a865986f6 |
comparison
equal
deleted
inserted
replaced
401:746d8c9c35f4 | 402:20d2edbc863d |
---|---|
6 | 6 |
7 BUILDBASE := $(basedir).buildbase | 7 BUILDBASE := $(basedir).buildbase |
8 GOPATH := $(BUILDBASE)/go | 8 GOPATH := $(BUILDBASE)/go |
9 GOCACHE := $(BUILDBASE)/gocache | 9 GOCACHE := $(BUILDBASE)/gocache |
10 ENVWARPPER := $(BUILDBASE)/run-with-env.sh | 10 ENVWARPPER := $(BUILDBASE)/run-with-env.sh |
11 BINDIR := /usr/local/bin | |
11 | 12 |
12 export BUILDBASE | 13 export BUILDBASE |
13 | 14 |
14 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build | 15 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build |
15 | 16 |
40 cd cmd/gemma && "$(ENVWARPPER)" go build | 41 cd cmd/gemma && "$(ENVWARPPER)" go build |
41 | 42 |
42 client: | 43 client: |
43 $(MAKE) -f Makefile.build -C client | 44 $(MAKE) -f Makefile.build -C client |
44 | 45 |
46 install: gemma | |
47 cp cmd/gemma/gemma $(BINDIR) | |
48 | |
45 clean: | 49 clean: |
46 $(MAKE) -f Makefile.build -C client $@ | 50 $(MAKE) -f Makefile.build -C client $@ |
47 rm -f "$(gemma-bin)" | 51 rm -f "$(gemma-bin)" |
48 rm -rf "$(BUILDBASE)" | 52 rm -rf "$(BUILDBASE)" |