summaryrefslogtreecommitdiff
path: root/Makefile
blob: d33a25a10b8ca747b66c24839ec3e2e9b6818795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VERSION=0
MAJOR=0
MINOR=1
BUILD=`git rev-parse --short HEAD`
LDFLAGS="-X goprocnet.Version ${VERSION}.${MAJOR}.${MINOR}-${BUILD}"
all: build

build:
	@mkdir -p _build
	@go build -ldflags ${LDFLAGS} -o _build/goprocnet

test:
	@go test

install:
	@go install -ldflags ${LDFLAGS}

clean:
	@/bin/rm -rf _build/
	@/bin/rm -rf _dist/