summaryrefslogtreecommitdiffabout
authorTodd Zullinger <tmz@pobox.com>2010-09-06 13:31:23 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-09-19 17:11:45 (UTC)
commit0c3130de9677ddb0a3e257dba8de4e066ac0db6b (patch) (unidiff)
tree9c4c75a573587ae3d8b243c7fc902047b224cf32
parent679f7ef4f3f31dca8c8ac5536c3e18a5188e051a (diff)
downloadcgit-0c3130de9677ddb0a3e257dba8de4e066ac0db6b.zip
cgit-0c3130de9677ddb0a3e257dba8de4e066ac0db6b.tar.gz
cgit-0c3130de9677ddb0a3e257dba8de4e066ac0db6b.tar.bz2
Add Makefile targets to install/uninstall docs
Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile39
1 files changed, 38 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index db97ae3..3004e88 100644
--- a/Makefile
+++ b/Makefile
@@ -6,2 +6,7 @@ CGIT_CONFIG = /etc/cgitrc
6CACHE_ROOT = /var/cache/cgit 6CACHE_ROOT = /var/cache/cgit
7prefix = /usr
8docdir = $(prefix)/share/doc/cgit
9htmldir = $(docdir)
10pdfdir = $(docdir)
11mandir = $(prefix)/share/man
7SHA1_HEADER = <openssl/sha.h> 12SHA1_HEADER = <openssl/sha.h>
@@ -117,3 +122,4 @@ endif
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
@@ -172,2 +178,16 @@ install: all
172 178
179install-doc: install-man install-html install-pdf
180
181install-man: doc-man
182 $(INSTALL) -m 0755 -d $(DESTDIR)$(mandir)/man5
183 $(INSTALL) -m 0644 $(DOC_MAN5) $(DESTDIR)$(mandir)/man5
184
185install-html: doc-html
186 $(INSTALL) -m 0755 -d $(DESTDIR)$(htmldir)
187 $(INSTALL) -m 0644 $(DOC_HTML) $(DESTDIR)$(htmldir)
188
189install-pdf: doc-pdf
190 $(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir)
191 $(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir)
192
173uninstall: 193uninstall:
@@ -177,2 +197,19 @@ uninstall:
177 197
198uninstall-doc: uninstall-man uninstall-html uninstall-pdf
199
200uninstall-man:
201 @for i in $(DOC_MAN5); do \
202 rm -fv $(DESTDIR)$(mandir)/man5/$$i; \
203 done
204
205uninstall-html:
206 @for i in $(DOC_HTML); do \
207 rm -fv $(DESTDIR)$(htmldir)/$$i; \
208 done
209
210uninstall-pdf:
211 @for i in $(DOC_PDF); do \
212 rm -fv $(DESTDIR)$(pdfdir)/$$i; \
213 done
214
178doc: doc-man doc-html doc-pdf 215doc: doc-man doc-html doc-pdf