-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,2 +6,4 @@ CACHE_ROOT = /var/cache/cgit SHA1_HEADER = <openssl/sha.h> +GIT_VER = 1.5.2 +GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 @@ -19,3 +21,3 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ -.PHONY: all git install clean distclean force-version +.PHONY: all git install clean distclean force-version get-git @@ -66 +68,4 @@ distclean: clean cd git && git clean -d -x + +get-git: + curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git |