summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12fd652..fcbe3e4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
CGIT_VERSION = v0.5
CGIT_SCRIPT_NAME = cgit.cgi
CGIT_SCRIPT_PATH = /var/www/htdocs/cgit
CGIT_CONFIG = /etc/cgitrc
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
#
# Let the user override the above settings.
#
-include cgit.conf
@@ -14,13 +16,13 @@ SHA1_HEADER = <openssl/sha.h>
EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto
OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \
ui-snapshot.o ui-blob.o ui-tag.o
-.PHONY: all git install clean distclean force-version
+.PHONY: all git install clean distclean force-version get-git
all: cgit git
VERSION: force-version
@./gen-version.sh "$(CGIT_VERSION)"
-include VERSION
@@ -61,6 +63,9 @@ clean:
rm -f cgit VERSION *.o
cd git && $(MAKE) clean
distclean: clean
git clean -d -x
cd git && git clean -d -x
+
+get-git:
+ curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git