Skip to content

Commit

Permalink
Added makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevelop committed Dec 4, 2019
1 parent d38edc1 commit 41914b0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY=dist clean darwin linux windows
BUILDARGS=-ldflags '-w -s' -trimpath

all: dist darwin linux windows

clean:
$(RM) -fvr dist

dist:
mkdir dist

darwin:
GOOS=darwin go build ${BUILDARGS} -o dist/ezpwd_darwin ./ezpwd/

linux:
GOOS=linux go build ${BUILDARGS} -o dist/ezpwd_linux ./ezpwd/

windows:
GOOS=windows go build ${BUILDARGS} -o dist/ezpwd_windows ./ezpwd/

0 comments on commit 41914b0

Please sign in to comment.