Replaced install_dependencie with Makefile, updated readme

This commit is contained in:
Amir Malka
2022-07-18 13:42:58 +03:00
parent 30f454de08
commit 895f330e14
7 changed files with 84 additions and 29 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
.PHONY: test all build libgit2
# default task invoked while running make
all: libgit2 build
export CGO_ENABLED=1
# build and install libgit2
libgit2:
git submodule update --init --recursive
cd git2go; make install-static
# go build tags
TAGS = "static"
build:
go build -v -tags=$(TAGS) .
test:
go test -v -tags=$(TAGS) ./...