Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from chaitin/build-refine
Browse files Browse the repository at this point in the history
strip binary and remove libssh and libcurl dependency
  • Loading branch information
zTrix committed Sep 30, 2015
2 parents 413604c + 81285c0 commit 0f17070
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ all: $(TARGET)
deps:
go get -u github.com/abbot/go-http-auth
go get -d github.com/libgit2/git2go
cd src/github.com/libgit2/git2go && git checkout next && git submodule update --init && make install && go install
cd ../../../..
cd src/github.com/libgit2/git2go; \
git checkout next ;\
git submodule update --init;\
sed -i '17i\ \ \ \ \ \ -DUSE_SSH=OFF -DCURL=OFF \\' script/build-libgit2-static.sh; \
make install;\
go install

# PHONY target should not be a dependency
$(TARGET): bindata.go
go build -o $@
go build -ldflags="-s" -o $@

bin/go-bindata:
go get -u github.com/jteeuwen/go-bindata/...
Expand Down

0 comments on commit 0f17070

Please sign in to comment.