summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-06-03 18:35:09 +0200
committerCarlos Martín Nieto <[email protected]>2014-06-03 18:35:09 +0200
commit064629428296914c4a5875f8da6b557d55f82930 (patch)
treedc7123f06956cdaf851674f8066c11fbfa75c11c /Makefile
parent29a983b68f6dc75271d24e33fc5b3eb7801ce986 (diff)
Move some logic into the Makefile
This should provide a nice compromise between the scripts and comon commands.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7d7475c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+default: test
+
+build-libgit2:
+ ./script/build-libgit2-static.sh
+
+update-libgit2:
+ cd vendor/libgit2 && \
+ git fetch origin development && \
+ git checkout -qf FETCH_HEAD
+
+test: build-libgit2
+ ./script/with-static.sh go test ./...
+
+install: build-libgit2
+ ./script/with-static.sh go install ./...