-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd66d2c
commit 647799a
Showing
3 changed files
with
26 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
TEST=. | ||
BENCH=. | ||
COVERPROFILE=/tmp/c.out | ||
VERSION=0.1.0 | ||
GOLDFLAGS="-X main.version $(VERSION)" | ||
|
||
# http://cloc.sourceforge.net/ | ||
cloc: | ||
@cloc --not-match-f='Makefile|_test.go' . | ||
default: | ||
|
||
cover: fmt | ||
go test -coverprofile=$(COVERPROFILE) -test.run=$(TEST) . | ||
go tool cover -html=$(COVERPROFILE) | ||
rm $(COVERPROFILE) | ||
release: release-windows release-darwin release-linux | ||
|
||
fmt: | ||
@go fmt ./... | ||
release-windows: | ||
mkdir -p bin/windows/amd64 | ||
GOOS=windows GOARCH=amd64 go build -ldflags=$(GOLDFLAGS) -o bin/windows/amd64/ego ./cmd/ego | ||
|
||
test: fmt | ||
@go test -v -cover -test.run=$(TEST) | ||
release-darwin: | ||
mkdir -p bin/darwin/amd64 | ||
GOOS=darwin GOARCH=amd64 go build -ldflags=$(GOLDFLAGS) -o bin/darwin/amd64/ego ./cmd/ego | ||
|
||
.PHONY: cloc cover fmt test | ||
release-linux: | ||
mkdir -p bin/linux/amd64 | ||
GOOS=linux GOARCH=amd64 go build -ldflags=$(GOLDFLAGS) -o bin/linux/amd64/ego ./cmd/ego | ||
|
||
.PHONY: default release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters