comparison Makefile @ 1008:9f49ae20c54c

demo build via make demo
author Markus Kottlaender <markus@intevation.de>
date Tue, 23 Oct 2018 08:34:44 +0200
parents 9b67c4f5a7b2
children 77202406b1a7
comparison
equal deleted inserted replaced
1007:ea8db3ec863c 1008:9f49ae20c54c
12 12
13 export BUILDBASE 13 export BUILDBASE
14 14
15 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build 15 3rdpartylibs-stamp := $(BUILDBASE)/3rdpartylibs-build
16 16
17 .PHONY: all 3rdpartylibs gemma client clean 17 .PHONY: all demo 3rdpartylibs gemma client clientdemo clean
18 18
19 all: gemma client 19 all: gemma client
20
21 demo: gemma clientdemo
20 22
21 $(ENVWARPPER): 23 $(ENVWARPPER):
22 @echo "Preparing go build environment:" 24 @echo "Preparing go build environment:"
23 mkdir -p "$(GOCACHE)" 25 mkdir -p "$(GOCACHE)"
24 mkdir -p "$(GOPATH)/src/gemma.intevation.de" 26 mkdir -p "$(GOPATH)/src/gemma.intevation.de"
41 cd cmd/gemma && "$(ENVWARPPER)" go build 43 cd cmd/gemma && "$(ENVWARPPER)" go build
42 44
43 client: 45 client:
44 $(MAKE) -f Makefile.build -C client 46 $(MAKE) -f Makefile.build -C client
45 47
48 clientdemo:
49 $(MAKE) demo -f Makefile.build -C client
50
46 install: gemma 51 install: gemma
47 cp cmd/gemma/gemma $(BINDIR) 52 cp cmd/gemma/gemma $(BINDIR)
48 53
49 tar: all 54 tar: all
50 v="gemma-$$(hg id -i)" ;\ 55 v="gemma-$$(hg id -i)" ;\