Skip to content

Commit

Permalink
Build lstags as static binary for using it in scratch
Browse files Browse the repository at this point in the history
Signed-off-by: solidnerd <niclas@mietz.io>
  • Loading branch information
solidnerd committed Nov 1, 2017
1 parent a24543b commit 88d0e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ fail-on-errors:
@test `echo "${ERRORS}" | grep . | wc -l` -eq 0

build:
@if [[ -z "${GOOS}" ]]; then go build; fi
@if [[ -n "${GOOS}" ]]; then mkdir -p dist/assets/lstags-${GOOS}; GOOS=${GOOS} go build -o dist/assets/lstags-${GOOS}/lstags; fi
@if [[ -z "${GOOS}" ]]; then go build -ldflags '-d -s -w' -a -tags netgo -installsuffix netgo; fi
@if [[ -n "${GOOS}" ]]; then mkdir -p dist/assets/lstags-${GOOS}; GOOS=${GOOS} go build -ldflags '-d -s -w' -a -tags netgo -installsuffix netgo -o dist/assets/lstags-${GOOS}/lstags; fi

xbuild:
${MAKE} --no-print-directory build GOOS=linux
Expand Down

0 comments on commit 88d0e3e

Please sign in to comment.