|
diff --git a/Makefile b/Makefile index af2879e..f6d6968 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,49 +1,49 @@ |
1 | CGIT_VERSION = v0.9 |
1 | CGIT_VERSION = v0.9.0.1 |
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_DATA_PATH = $(CGIT_SCRIPT_PATH) |
4 | CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH) |
5 | CGIT_CONFIG = /etc/cgitrc |
5 | CGIT_CONFIG = /etc/cgitrc |
6 | CACHE_ROOT = /var/cache/cgit |
6 | CACHE_ROOT = /var/cache/cgit |
7 | prefix = /usr |
7 | prefix = /usr |
8 | libdir = $(prefix)/lib |
8 | libdir = $(prefix)/lib |
9 | filterdir = $(libdir)/cgit/filters |
9 | filterdir = $(libdir)/cgit/filters |
10 | docdir = $(prefix)/share/doc/cgit |
10 | docdir = $(prefix)/share/doc/cgit |
11 | htmldir = $(docdir) |
11 | htmldir = $(docdir) |
12 | pdfdir = $(docdir) |
12 | pdfdir = $(docdir) |
13 | mandir = $(prefix)/share/man |
13 | mandir = $(prefix)/share/man |
14 | SHA1_HEADER = <openssl/sha.h> |
14 | SHA1_HEADER = <openssl/sha.h> |
15 | GIT_VER = 1.7.4 |
15 | GIT_VER = 1.7.4 |
16 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
16 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
17 | INSTALL = install |
17 | INSTALL = install |
18 | MAN5_TXT = $(wildcard *.5.txt) |
18 | MAN5_TXT = $(wildcard *.5.txt) |
19 | MAN_TXT = $(MAN5_TXT) |
19 | MAN_TXT = $(MAN5_TXT) |
20 | DOC_MAN5 = $(patsubst %.txt,%,$(MAN5_TXT)) |
20 | DOC_MAN5 = $(patsubst %.txt,%,$(MAN5_TXT)) |
21 | DOC_HTML = $(patsubst %.txt,%.html,$(MAN_TXT)) |
21 | DOC_HTML = $(patsubst %.txt,%.html,$(MAN_TXT)) |
22 | DOC_PDF = $(patsubst %.txt,%.pdf,$(MAN_TXT)) |
22 | DOC_PDF = $(patsubst %.txt,%.pdf,$(MAN_TXT)) |
23 | |
23 | |
24 | # Define NO_STRCASESTR if you don't have strcasestr. |
24 | # Define NO_STRCASESTR if you don't have strcasestr. |
25 | # |
25 | # |
26 | # Define NO_OPENSSL to disable linking with OpenSSL and use bundled SHA1 |
26 | # Define NO_OPENSSL to disable linking with OpenSSL and use bundled SHA1 |
27 | # implementation (slower). |
27 | # implementation (slower). |
28 | # |
28 | # |
29 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). |
29 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). |
30 | # |
30 | # |
31 | # Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.) |
31 | # Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.) |
32 | # do not support the 'size specifiers' introduced by C99, namely ll, hh, |
32 | # do not support the 'size specifiers' introduced by C99, namely ll, hh, |
33 | # j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t). |
33 | # j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t). |
34 | # some C compilers supported these specifiers prior to C99 as an extension. |
34 | # some C compilers supported these specifiers prior to C99 as an extension. |
35 | # |
35 | # |
36 | |
36 | |
37 | #-include config.mak |
37 | #-include config.mak |
38 | |
38 | |
39 | # |
39 | # |
40 | # Platform specific tweaks |
40 | # Platform specific tweaks |
41 | # |
41 | # |
42 | |
42 | |
43 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
43 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
44 | uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not') |
44 | uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not') |
45 | uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not') |
45 | uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not') |
46 | |
46 | |
47 | ifeq ($(uname_O),Cygwin) |
47 | ifeq ($(uname_O),Cygwin) |
48 | NO_STRCASESTR = YesPlease |
48 | NO_STRCASESTR = YesPlease |
49 | NEEDS_LIBICONV = YesPlease |
49 | NEEDS_LIBICONV = YesPlease |
|