-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
34 lines (24 loc) · 824 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
GO := go
GOBUILDOPTS ?= -v
GOTESTOPTS := -v
BINPATH := bin
CMDPREFIX := github.com/thomersch/grandine/cmd
export CGO_CFLAGS=-I. -I/usr/local/include
export CGO_LDFLAGS=-L/usr/local/lib
export GO111MODULE=on
build: build-converter build-inspect build-spatialize build-tiler
build-converter:
$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-converter" $(CMDPREFIX)/converter
build-inspect:
$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-inspect" $(CMDPREFIX)/inspect
build-spatialize:
$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-spatialize" $(CMDPREFIX)/spatialize
build-tiler:
$(GO) build $(GOBUILDOPTS) -o "$(BINPATH)/grandine-tiler" $(CMDPREFIX)/tiler
clean:
rm '$(BINPATH)'/*
test:
$(GO) test $(GOTESTOPTS) ./...
# retrieves deps for tests
test-deps:
$(GO) get -t -u -v ./...