initial commit
This commit is contained in:
commit
3f79fc8e6c
527 changed files with 373170 additions and 0 deletions
32
Makefile
Normal file
32
Makefile
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
CC=go
|
||||
BUILD=build -v
|
||||
LDFLAGS=--ldflags "-s -w"
|
||||
PROGRAM=gowiki
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
setup:
|
||||
$(CC) get github.com/tools/godep
|
||||
$(CC) get github.com/client9/misspell
|
||||
|
||||
$(PROGRAM): clean codeqa
|
||||
CGO_ENABLED=0 $(CC) $(BUILD) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(CC) clean -x
|
||||
|
||||
codeqa: templates gofmt misspell golint
|
||||
|
||||
gofmt:
|
||||
gofmt -w .
|
||||
|
||||
golint:
|
||||
$(GOPATH)/bin/golint .
|
||||
|
||||
misspell:
|
||||
$(GOPATH)/bin/misspell **/*
|
||||
|
||||
templates:
|
||||
$(CC) generate
|
||||
|
||||
.PHONY: setup build clean templates gofmt misspell golint
|
||||
Loading…
Add table
Add a link
Reference in a new issue