Skip to content

Commit

Permalink
CHange name
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Sep 26, 2017
1 parent 5b2a5b0 commit e857589
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')

BINARY=findclient
BINARY=fingerprint

VERSION=0.6
BUILD_TIME=`date +%FT%T%z`
Expand All @@ -26,30 +26,30 @@ clean:
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
rm -rf builds
rm -rf find
rm -rf findclient*
rm -rf fingerprint*

.PHONY: binaries
binaries:
go test
rm -rf builds
mkdir builds
# Build Windows
env GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o findclient.exe -v *.go
zip -r findclient_${VERSION}_windows_amd64.zip findclient.exe LICENSE
mv findclient_${VERSION}_windows_amd64.zip builds/
rm findclient.exe
env GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o fingerprint.exe -v *.go
zip -r fingerprint_${VERSION}_windows_amd64.zip fingerprint.exe LICENSE
mv fingerprint_${VERSION}_windows_amd64.zip builds/
rm fingerprint.exe
# Build Linux
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_linux_amd64.zip findclient LICENSE
mv findclient_${VERSION}_linux_amd64.zip builds/
rm findclient
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_linux_amd64.zip fingerprint LICENSE
mv fingerprint_${VERSION}_linux_amd64.zip builds/
rm fingerprint
# Build OS X
env GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_osx.zip findclient LICENSE
mv findclient_${VERSION}_osx.zip builds/
rm findclient
env GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_osx.zip fingerprint LICENSE
mv fingerprint_${VERSION}_osx.zip builds/
rm fingerprint
# Build Raspberry Pi / Chromebook
env GOOS=linux GOARCH=arm go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_linux_arm.zip findclient LICENSE
mv findclient_${VERSION}_linux_arm.zip builds/
rm findclient
env GOOS=linux GOARCH=arm go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_linux_arm.zip fingerprint LICENSE
mv fingerprint_${VERSION}_linux_arm.zip builds/
rm fingerprint

0 comments on commit e857589

Please sign in to comment.