|
diff --git a/Makefile b/Makefile index 12fd652..fcbe3e4 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,12 +1,14 @@ |
1 | CGIT_VERSION = v0.5 |
1 | CGIT_VERSION = v0.5 |
2 | CGIT_SCRIPT_NAME = cgit.cgi |
2 | CGIT_SCRIPT_NAME = cgit.cgi |
3 | CGIT_SCRIPT_PATH = /var/www/htdocs/cgit |
3 | CGIT_SCRIPT_PATH = /var/www/htdocs/cgit |
4 | CGIT_CONFIG = /etc/cgitrc |
4 | 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 | # |
9 | # Let the user override the above settings. |
11 | # Let the user override the above settings. |
10 | # |
12 | # |
11 | -include cgit.conf |
13 | -include cgit.conf |
12 | |
14 | |
@@ -14,13 +16,13 @@ SHA1_HEADER = <openssl/sha.h> |
14 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
16 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
15 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
17 | OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ |
16 | ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \ |
18 | ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \ |
17 | ui-snapshot.o ui-blob.o ui-tag.o |
19 | ui-snapshot.o ui-blob.o ui-tag.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 |
23 | |
25 | |
24 | VERSION: force-version |
26 | VERSION: force-version |
25 | @./gen-version.sh "$(CGIT_VERSION)" |
27 | @./gen-version.sh "$(CGIT_VERSION)" |
26 | -include VERSION |
28 | -include VERSION |
@@ -61,6 +63,9 @@ clean: |
61 | rm -f cgit VERSION *.o |
63 | rm -f cgit VERSION *.o |
62 | cd git && $(MAKE) clean |
64 | cd git && $(MAKE) clean |
63 | |
65 | |
64 | distclean: clean |
66 | 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 |
|