comparison Makefile @ 217:3fdbdd59ef80

Makefile: Make rebuild of gemma work
author Sascha Wilde <wilde@intevation.de>
date Tue, 24 Jul 2018 11:32:42 +0200
parents da24df80c25d
children 75e32633fb96
comparison
equal deleted inserted replaced
216:494a257e7715 217:3fdbdd59ef80
9 GOCACHE := $(BUILDBASE)/gocache 9 GOCACHE := $(BUILDBASE)/gocache
10 ENVWARPPER := $(BUILDBASE)/run-with-env.sh 10 ENVWARPPER := $(BUILDBASE)/run-with-env.sh
11 11
12 export BUILDBASE 12 export BUILDBASE
13 13
14 gemma-bin := cmd/gemma/gemma
15 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build 14 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build
16 15
17 .PHONY: all 3rdpartylibs gemma client clean 16 .PHONY: all 3rdpartylibs gemma client clean
18 17
19 all: gemma client 18 all: gemma client
35 "$(ENVWARPPER)" bash ./3rdpartylibs.sh && \ 34 "$(ENVWARPPER)" bash ./3rdpartylibs.sh && \
36 touch $@ 35 touch $@
37 36
38 3rdpartylibs: $(3rdpartylibs-stamp) 37 3rdpartylibs: $(3rdpartylibs-stamp)
39 38
40 $(gemma-bin): $(3rdpartylibs-stamp) $(ENVWARPPER) 39 gemma: $(3rdpartylibs-stamp) $(ENVWARPPER)
41 cd cmd/gemma && "$(ENVWARPPER)" go build 40 cd cmd/gemma && "$(ENVWARPPER)" go build
42
43 gemma: $(gemma-bin)
44 41
45 client: 42 client:
46 $(MAKE) -f Makefile.build -C client 43 $(MAKE) -f Makefile.build -C client
47 44
48 clean: 45 clean: