Skip to content

Commit

Permalink
Add a rule to makefile to clean before building.
Browse files Browse the repository at this point in the history
  • Loading branch information
switchtrue committed Aug 4, 2016
1 parent a4f9e22 commit 603e420
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
generate-bindata-debug:
go-bindata -debug -o tmpl/bindata.go -pkg tmpl tmpl

build:
clean:
rm -f build/*

build: clean
go-bindata -o tmpl/bindata.go -pkg tmpl tmpl
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X github.com/mleonard87/frosty/cli.frostyVersion=0.0.1" -o "build/darwin_amd64" frosty.go
env GOOS=linux GOARCH=386 go build -ldflags "-X github.com/mleonard87/frosty/cli.frostyVersion=0.0.1" -o "build/linux_386" frosty.go
Expand Down

0 comments on commit 603e420

Please sign in to comment.