diff options
author | Adam Mathes <adam@trenchant.org> | 2018-09-19 15:24:56 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2018-09-19 15:24:56 -0700 |
commit | 71acb7807c4e6969d0c6d3038928bcc30d591b2c (patch) | |
tree | 870b4dc677e8b26162958e214c9097baa4ae1d06 /Makefile | |
parent | d06c50d68f33cb1b905bab3384cb3288e963935f (diff) | |
download | neko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.tar.gz neko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.tar.bz2 neko-71acb7807c4e6969d0c6d3038928bcc30d591b2c.zip |
update makefile
Diffstat (limited to 'Makefile')
-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 |