about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-02-12 10:53:31 +0100
committerLars Hjemli <hjemli@gmail.com>2009-02-12 10:53:31 +0100
commit5e57cb24fca398b1a8cbceb84d9e9649785459d2 (patch)
treee841badd3abc7e6b444001bd39279419fbb3aaa8
parentAdd cgit-doc.css (diff)
downloadcgit-pink-5e57cb24fca398b1a8cbceb84d9e9649785459d2.tar.gz
cgit-pink-5e57cb24fca398b1a8cbceb84d9e9649785459d2.zip
Makefile: add doc-related targets
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0f0089a..056d516 100644
--- a/Makefile
+++ b/Makefile
@@ -100,7 +100,8 @@ ifdef NEEDS_LIBICONV
 endif
 
 
-.PHONY: all libgit test install uninstall clean force-version get-git
+.PHONY: all libgit test install uninstall clean force-version get-git \
+	doc man-doc html-doc clean-doc
 
 all: cgit
 
@@ -149,8 +150,22 @@ uninstall:
 	rm -f $(CGIT_DATA_PATH)/cgit.css
 	rm -f $(CGIT_DATA_PATH)/cgit.png
 
-clean:
+doc: man-doc html-doc pdf-doc
+
+man-doc: cgitrc.5.txt
+	a2x -f manpage cgitrc.5.txt
+
+html-doc: cgitrc.5.txt
+	a2x -f xhtml --stylesheet=cgit-doc.css cgitrc.5.txt
+
+pdf-doc: cgitrc.5.txt
+	a2x -f pdf cgitrc.5.txt
+
+clean: clean-doc
 	rm -f cgit VERSION *.o *.d
 
+clean-doc:
+	rm -f cgitrc.5 cgitrc.5.xhtml cgitrc.5.pdf
+
 get-git:
 	curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git
4:08 -0500'>2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe