diff options
-rw-r--r-- | Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -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 |