aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7cdbd93..696eb6f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,21 @@
+SH=/bin/sh
+
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
+all: clean build docs
build:
+ rice -i ./web embed-go
go build ${LDFLAGS} -o ${BINARY}
-install:
- go install
+install: build
+ cp ${BINARY} ${GOBIN}
-docs:
+readme: REAMDE.md
+docs: readme.html
+readme.html: README.md
ghmarkdown README.md > readme.html