Build static binaries on !OS X. #142

This commit is contained in:
Andrey Smirnov
2015-04-05 22:52:08 +03:00
parent fb213ef6eb
commit d56ac81fd6
+9 -1
View File
@@ -18,6 +18,14 @@ else
GOM=gom
endif
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
GOLDFLAGS=
else
GOLDFLAGS=--ldflags='-extldflags -static'
endif
all: test check system-test
prepare:
@@ -40,7 +48,7 @@ check:
$(GOM) exec golint $(ALL_PACKAGES:%=./%)
install:
$(GOM) build -o $(BINPATH)/aptly
$(GOM) build -o $(BINPATH)/aptly $(GOLDFLAGS)
system-test: install
if [ ! -e ~/aptly-fixture-db ]; then git clone https://github.com/aptly-dev/aptly-fixture-db.git ~/aptly-fixture-db/; fi