From 71acb7807c4e6969d0c6d3038928bcc30d591b2c Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Wed, 19 Sep 2018 15:24:56 -0700 Subject: update makefile --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3