mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
Build static binaries on !OS X. #142
This commit is contained in:
@@ -18,6 +18,14 @@ else
|
|||||||
GOM=gom
|
GOM=gom
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
UNAME := $(shell uname)
|
||||||
|
|
||||||
|
ifeq ($(UNAME), Darwin)
|
||||||
|
GOLDFLAGS=
|
||||||
|
else
|
||||||
|
GOLDFLAGS=--ldflags='-extldflags -static'
|
||||||
|
endif
|
||||||
|
|
||||||
all: test check system-test
|
all: test check system-test
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
@@ -40,7 +48,7 @@ check:
|
|||||||
$(GOM) exec golint $(ALL_PACKAGES:%=./%)
|
$(GOM) exec golint $(ALL_PACKAGES:%=./%)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(GOM) build -o $(BINPATH)/aptly
|
$(GOM) build -o $(BINPATH)/aptly $(GOLDFLAGS)
|
||||||
|
|
||||||
system-test: install
|
system-test: install
|
||||||
if [ ! -e ~/aptly-fixture-db ]; then git clone https://github.com/aptly-dev/aptly-fixture-db.git ~/aptly-fixture-db/; fi
|
if [ ! -e ~/aptly-fixture-db ]; then git clone https://github.com/aptly-dev/aptly-fixture-db.git ~/aptly-fixture-db/; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user