|
diff --git a/Makefile b/Makefile index db97ae3..3004e88 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -4,6 +4,11 @@ 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 |
| |
8 | docdir = $(prefix)/share/doc/cgit |
| |
9 | htmldir = $(docdir) |
| |
10 | pdfdir = $(docdir) |
| |
11 | mandir = $(prefix)/share/man |
7 | SHA1_HEADER = <openssl/sha.h> |
12 | SHA1_HEADER = <openssl/sha.h> |
8 | GIT_VER = 1.7.3 |
13 | GIT_VER = 1.7.3 |
9 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
14 | GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 |
@@ -115,7 +120,8 @@ endif |
115 | |
120 | |
116 | |
121 | |
117 | .PHONY: all libgit test install uninstall clean force-version get-git \ |
122 | .PHONY: all libgit test install uninstall clean force-version get-git \ |
118 | doc clean-doc |
123 | doc clean-doc install-doc install-man install-html install-pdf \ |
| |
124 | uninstall-doc uninstall-man uninstall-html uninstall-pdf |
119 | |
125 | |
120 | all: cgit |
126 | all: cgit |
121 | |
127 | |
@@ -170,11 +176,42 @@ install: all |
170 | $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css |
176 | $(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css |
171 | $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png |
177 | $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png |
172 | |
178 | |
| |
179 | install-doc: install-man install-html install-pdf |
| |
180 | |
| |
181 | install-man: doc-man |
| |
182 | $(INSTALL) -m 0755 -d $(DESTDIR)$(mandir)/man5 |
| |
183 | $(INSTALL) -m 0644 $(DOC_MAN5) $(DESTDIR)$(mandir)/man5 |
| |
184 | |
| |
185 | install-html: doc-html |
| |
186 | $(INSTALL) -m 0755 -d $(DESTDIR)$(htmldir) |
| |
187 | $(INSTALL) -m 0644 $(DOC_HTML) $(DESTDIR)$(htmldir) |
| |
188 | |
| |
189 | install-pdf: doc-pdf |
| |
190 | $(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir) |
| |
191 | $(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir) |
| |
192 | |
173 | uninstall: |
193 | uninstall: |
174 | rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
194 | rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
175 | rm -f $(CGIT_DATA_PATH)/cgit.css |
195 | rm -f $(CGIT_DATA_PATH)/cgit.css |
176 | rm -f $(CGIT_DATA_PATH)/cgit.png |
196 | rm -f $(CGIT_DATA_PATH)/cgit.png |
177 | |
197 | |
| |
198 | uninstall-doc: uninstall-man uninstall-html uninstall-pdf |
| |
199 | |
| |
200 | uninstall-man: |
| |
201 | @for i in $(DOC_MAN5); do \ |
| |
202 | rm -fv $(DESTDIR)$(mandir)/man5/$$i; \ |
| |
203 | done |
| |
204 | |
| |
205 | uninstall-html: |
| |
206 | @for i in $(DOC_HTML); do \ |
| |
207 | rm -fv $(DESTDIR)$(htmldir)/$$i; \ |
| |
208 | done |
| |
209 | |
| |
210 | uninstall-pdf: |
| |
211 | @for i in $(DOC_PDF); do \ |
| |
212 | rm -fv $(DESTDIR)$(pdfdir)/$$i; \ |
| |
213 | done |
| |
214 | |
178 | doc: doc-man doc-html doc-pdf |
215 | doc: doc-man doc-html doc-pdf |
179 | doc-man: doc-man5 |
216 | doc-man: doc-man5 |
180 | doc-man5: $(DOC_MAN5) |
217 | doc-man5: $(DOC_MAN5) |
|