Skip to content

Commit

Permalink
add makefile to build multiple binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rbague committed Jan 7, 2020
1 parent d8323d8 commit 12de594
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ Icon
Network Trash Folder
Temporary Items
.apdisk

# Ignore binaries
bin/*
!bin/.gitkeep
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
OUT=sfs

run:
go run main.go

build: clean
GOOS=linux GOARCH=arm go build -o bin/$(OUT)-linux-arm
GOOS=darwin GOARCH=amd64 go build -o bin/$(OUT)-darwin-amd64

clean:
find bin ! -name '.gitkeep' -type f -exec rm {} +
Empty file added bin/.gitkeep
Empty file.

0 comments on commit 12de594

Please sign in to comment.