-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 784 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 784 Bytes
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
35
36
37
# Go parameters
GOCMD=godep go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOINSTALL=$(GOCMD) install
GOTEST=$(GOCMD) test
GODEP=$(GOTEST) -i
GOFMT=gofmt -w
TARGET=$(PWD)/target
FILES=bindata_assetfs.go main.go
req:
go get github.com/tools/godep
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
godep restore
build: req bindatafs
GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(TARGET)/simpleview.linux.amd64 $(FILES)
GOOS=darwin GOARCH=amd64 $(GOBUILD) -o $(TARGET)/simpleview.darwin.amd64 $(FILES)
clean:
rm $(TARGET)/*
rm bindata_assetfs.go
run:
go-bindata-assetfs -debug public
$(GOCMD) run bindata_assetfs.go main.go
test: req bindatafs
$(GOCMD) test *.go
bindatafs:
go-bindata-assetfs public
all: req bindatafs test build