|
diff --git a/Makefile b/Makefile index a988751..14b4df4 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,33 +1,33 @@ |
1 | CGIT_VERSION = v0.8.3.4 |
1 | CGIT_VERSION = v0.8.3.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_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). |
@@ -212,33 +212,33 @@ uninstall-man: |
212 | uninstall-html: |
212 | uninstall-html: |
213 | @for i in $(DOC_HTML); do \ |
213 | @for i in $(DOC_HTML); do \ |
214 | rm -fv $(DESTDIR)$(htmldir)/$$i; \ |
214 | rm -fv $(DESTDIR)$(htmldir)/$$i; \ |
215 | done |
215 | done |
216 | |
216 | |
217 | uninstall-pdf: |
217 | uninstall-pdf: |
218 | @for i in $(DOC_PDF); do \ |
218 | @for i in $(DOC_PDF); do \ |
219 | rm -fv $(DESTDIR)$(pdfdir)/$$i; \ |
219 | rm -fv $(DESTDIR)$(pdfdir)/$$i; \ |
220 | done |
220 | done |
221 | |
221 | |
222 | doc: doc-man doc-html doc-pdf |
222 | doc: doc-man doc-html doc-pdf |
223 | doc-man: doc-man5 |
223 | doc-man: doc-man5 |
224 | doc-man5: $(DOC_MAN5) |
224 | doc-man5: $(DOC_MAN5) |
225 | doc-html: $(DOC_HTML) |
225 | doc-html: $(DOC_HTML) |
226 | doc-pdf: $(DOC_PDF) |
226 | doc-pdf: $(DOC_PDF) |
227 | |
227 | |
228 | %.5 : %.5.txt |
228 | %.5 : %.5.txt |
229 | a2x -f manpage $< |
229 | a2x -f manpage $< |
230 | |
230 | |
231 | $(DOC_HTML): %.html : %.txt |
231 | $(DOC_HTML): %.html : %.txt |
232 | a2x -f xhtml --stylesheet=cgit-doc.css $< |
232 | a2x -f xhtml --stylesheet=cgit-doc.css $< |
233 | |
233 | |
234 | $(DOC_PDF): %.pdf : %.txt |
234 | $(DOC_PDF): %.pdf : %.txt |
235 | a2x -f pdf cgitrc.5.txt |
235 | a2x -f pdf cgitrc.5.txt |
236 | |
236 | |
237 | clean: clean-doc |
237 | clean: clean-doc |
238 | rm -f cgit VERSION *.o *.d |
238 | rm -f cgit VERSION *.o *.d |
239 | |
239 | |
240 | clean-doc: |
240 | clean-doc: |
241 | rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo |
241 | rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo |
242 | |
242 | |
243 | get-git: |
243 | get-git: |
244 | curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git |
244 | curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git |
|