aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-09-19 15:24:56 -0700
committerAdam Mathes <adam@trenchant.org>2018-09-19 15:24:56 -0700
commit71acb7807c4e6969d0c6d3038928bcc30d591b2c (patch)
tree870b4dc677e8b26162958e214c9097baa4ae1d06
parentd06c50d68f33cb1b905bab3384cb3288e963935f (diff)
downloadneko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.tar.gz
neko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.tar.bz2
neko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.zip
update makefile
-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