aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7cdbd93984e07a2d39d0759d137de6b9a0bd2c4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BINARY=neko
VERSION=0.2
BUILD=`git rev-parse HEAD`

LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"


SOURCES = $(wildcard *.go) $(wildcard */*.go)
BINARIES = nekoweb nekocrawl

default: build

all: clean build_all

build:
	go build ${LDFLAGS} -o ${BINARY}

install:
	go install

docs:
	ghmarkdown README.md > readme.html