Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Full instructions for compiling and executing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwhatcott committed Aug 14, 2017
1 parent 073d164 commit bf19934
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
bin*
smartyping.test
smartyping.test.exe
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/make -f

compress: compile
zip -r 'bin-$(shell git describe).zip' ./bin

compile: prepare
GOOS=darwin go test -c -o ./bin/macos/smartyping
GOOS=linux GOARCH=386 go test -c -o ./bin/linux-386/smartyping
GOOS=linux GOARCH=amd64 go test -c -o ./bin/linux-amd64/smartyping
GOOS=windows GOARCH=386 go test -c -o ./bin/windows-386/smartyping
GOOS=windows GOARCH=amd64 go test -c -o ./bin/windows-amd64/smartyping

prepare: clean
mkdir -p ./bin/macos
mkdir -p ./bin/linux-386
mkdir -p ./bin/linux-amd64
mkdir -p ./bin/windows-386
mkdir -p ./bin/windows-amd64

clean:
rm -rf ./bin*
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ $ go get github.com/smartystreets/smartyping
$ cd $GOPATH/src/github.com/smartystreets/smartyping
$ go test -v
```

To execute a [release binary](https://github.com/smartystreets/smartyping/releases):

Unzip the archive and navigate to the directory matching your platform. Then run one of the following commands:

$ smartyping

To execute in verbose mode:

$ smartyping -test.v

0 comments on commit bf19934

Please sign in to comment.