File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ all: $(BINARY)
23
23
$(BINARY ) : build-libgit2
24
24
$(GOCMD ) build $(GRV_BUILD_FLAGS ) -o $(BINARY ) $(GRV_SOURCE_DIR )
25
25
26
+ .PHONY : build-only
27
+ build-only :
28
+ make -C $(GIT2GO_DIR ) install-static
29
+ $(GOCMD ) build $(GRV_BUILD_FLAGS ) -o $(BINARY ) $(GRV_SOURCE_DIR )
30
+
31
+ .PHONY : build-libgit2
32
+ build-libgit2 : apply-git2go-patch
33
+ make -C $(GIT2GO_DIR ) install-static
34
+
26
35
.PHONY : install
27
36
install : $(BINARY )
28
37
install -m755 -d $(GOBIN_DIR )
@@ -37,13 +46,11 @@ update-test:
37
46
$(GOCMD ) get github.com/golang/lint/golint
38
47
$(GOCMD ) get github.com/stretchr/testify/mock
39
48
40
- .PHONY : build-libgit2
41
- build-libgit2 : update
49
+ .PHONY : apply-git2go-patch
50
+ apply-git2go-patch : update
42
51
if patch --dry-run -N -d $( GIT2GO_DIR) -p1 < $( GIT2GO_PATCH) > /dev/null; then \
43
52
patch -d $(GIT2GO_DIR ) -p1 < $(GIT2GO_PATCH ) ; \
44
53
fi
45
- cd $(GIT2GO_DIR ) && git submodule update --init;
46
- make -C $(GIT2GO_DIR ) install-static
47
54
48
55
# Only tested on Ubuntu.
49
56
# Requires dependencies static library versions to be present alongside dynamic ones
You can’t perform that action at this time.
0 commit comments