author | Lars Hjemli <hjemli@gmail.com> | 2007-09-03 20:42:54 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-09-03 20:49:19 (UTC) |
commit | 95eaf2735efffae533ae3b4133bc01b6eb303d5a (patch) (unidiff) | |
tree | 0e3a3b53fc643c2b7809eadd85bbd90f9257040a | |
parent | e8920b52629911f92dbbecdb1d7675760e7a781e (diff) | |
download | cgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.zip cgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.tar.gz cgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.tar.bz2 |
Makefile: add target "get-git"
The new target downloads a suitable git.git tarball from kernel.org and
unpacks it in the git directory.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,4 +5,6 @@ CGIT_CONFIG = /etc/cgitrc | |||
5 | CACHE_ROOT = /var/cache/cgit | 5 | CACHE_ROOT = /var/cache/cgit |
6 | SHA1_HEADER = <openssl/sha.h> | 6 | SHA1_HEADER = <openssl/sha.h> |
7 | GIT_VER = 1.5.2 | ||
8 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 | ||
7 | 9 | ||
8 | # | 10 | # |
@@ -18,5 +20,5 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ | |||
18 | 20 | ||
19 | 21 | ||
20 | .PHONY: all git install clean distclean force-version | 22 | .PHONY: all git install clean distclean force-version get-git |
21 | 23 | ||
22 | all: cgit git | 24 | all: cgit git |
@@ -65,2 +67,5 @@ distclean: clean | |||
65 | git clean -d -x | 67 | git clean -d -x |
66 | cd git && git clean -d -x | 68 | cd git && git clean -d -x |
69 | |||
70 | get-git: | ||
71 | curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git | ||