aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 696eb6f8c7b2ae387848adc2a20890ec49350740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SH=/bin/sh

BINARY=neko
VERSION=0.2
BUILD=`git rev-parse HEAD`
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"

default: build
all: clean build docs

build:
	rice -i ./web embed-go
	go build ${LDFLAGS} -o ${BINARY}

install: build
	cp ${BINARY} ${GOBIN}

readme: REAMDE.md
docs: readme.html
readme.html: README.md
	ghmarkdown README.md > readme.html