Skip to content

Commit

Permalink
Ensure the go-bindata is present when building the server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Homme Zwaagstra committed Apr 12, 2016
1 parent 206901c commit 327c06d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ cesium_version:=$(shell cat $(CURDIR)/docker/cesium-version.txt)
checkout:=$(shell cat $(CURDIR)/docker/cts-checkout.txt)
GOFILES:=$(shell find . -name '*.go')

GOBINDATA := $(GOPATH)/bin/go-bindata

install: $(GOFILES) assets/assets.go
go get ./... && go install ./...

assets/assets.go: .go-bindata data
go-bindata -ignore \\.gitignore -nocompress -pkg="assets" -o assets/assets.go data
assets/assets.go: $(GOBINDATA) data
$(GOBINDATA) -ignore \\.gitignore -nocompress -pkg="assets" -o assets/assets.go data

.go-bindata: data/smallterrain-blank.terrain
go get github.com/jteeuwen/go-bindata/... && touch .go-bindata
$(GOBINDATA): data/smallterrain-blank.terrain
go get github.com/jteeuwen/go-bindata/... && touch $(GOBINDATA)

data/smallterrain-blank.terrain:
curl --location --progress-bar https://raw.github.com/geo-data/cesium-terrain-builder/master/data/smallterrain-blank.terrain > data/smallterrain-blank.terrain
Expand Down

0 comments on commit 327c06d

Please sign in to comment.