Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wille committed Jan 17, 2017
1 parent 510ede0 commit a43a556
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
BUILD=go build -ldflags="-w -s"

default: build

build:
@echo "Building cry..."
$(BUILD) -o bin/cry.exe
@echo "Building server..."
cd web/ && $(BUILD) -o ../bin/web.exe

clean:
@rm -rf bin/
@rm -f debug debug.test web/debug web/debug.test

all:
GOOS=windows GOARCH=amd64 $(BUILD) -o bin/windows_amd64.exe
GOOS=windows GOARCH=386 $(BUILD) -o bin/windows_x86.exe
GOOS=linux GOARCH=amd64 $(BUILD) -o bin/linux_amd64
GOOS=linux GOARCH=386 $(BUILD) -o bin/linux_x86
GOOS=darwin GOARCH=amd64 $(BUILD) -o bin/macos

0 comments on commit a43a556

Please sign in to comment.