-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 747 Bytes
/
Makefile
File metadata and controls
50 lines (38 loc) · 747 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
38
39
40
41
42
43
44
45
46
47
48
49
50
GO_PKG_DIRS := $(subst $(shell go list -e .),.,$(shell go list ./... | grep -v /vendor/))
all: build
http:
zenfo-http -dbname zenfo -dbuser postgres
http-dev:
zenfo-http -dev
build: fmt lint vet
go clean -i
go generate
go install ./...
init setup:
./setup.sh
dropdb zenfo --if-exists
createdb zenfo
psql zenfo < zenfo.psql
release:
npm run build
make build
db:
zenfo-build -dbname zenfo -dbuser postgres -delete
vet:
go vet $(GO_PKG_DIRS)
fmt:
echo $(GO_PKG_DIRS)
gofmt -s -w $(GO_PKG_DIRS)
lint:
golint -set_exit_status $(GO_PKG_DIRS)
dbuild:
docker build -t zenfo:v1 .
docker:
docker run --rm -it \
-e POSTGRES_PASSWORD=secret \
-p 80:8081 \
-p 443:8082 \
-v $$(pwd):/code \
-w /code \
zenfo:v1 \
/bin/bash