summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96e58f5)
raw | patch | inline | side by side (parent: 96e58f5)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 20 Aug 2007 21:12:46 +0000 (23:12 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 21 Aug 2007 11:08:15 +0000 (13:08 +0200) |
Makefile | patch | blob | history | |
TODO | patch | blob | history | |
config.make.in | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/Makefile b/Makefile
index ff6239002c697c426baa2a474fd5b15744dd1ff6..033d1043133546f35d6dd62fcf6ef38fce7e6363 100644 (file)
--- a/Makefile
+++ b/Makefile
AUTOHEADER ?= autoheader
AUTOCONF ?= autoconf
+ASCIIDOC ?= asciidoc
+XMLTO ?= xmlto
+DOCBOOK2PDF ?= docbook2pdf
all: $(PROGS)
all-debug: $(PROGS)
esac; done | sed 's/\[\[\(.*\)\]\]/\1/' > $@
README.html: README
- asciidoc -b xhtml11 -d article -a readme $<
+ $(ASCIIDOC) -b xhtml11 -d article -a readme $<
%.pdf : %.xml
- docbook2pdf $<
+ $(DOCBOOK2PDF) $<
%.1.html : %.1.txt
- asciidoc -b xhtml11 -d manpage $<
+ $(ASCIIDOC) -b xhtml11 -d manpage $<
%.1.xml : %.1.txt
- asciidoc -b docbook -d manpage -aversion=$(VERSION) $<
+ $(ASCIIDOC) -b docbook -d manpage -aversion=$(VERSION) $<
%.1 : %.1.xml
- xmlto -m manpage.xsl man $<
+ $(XMLTO) -m manpage.xsl man $<
%.5.html : %.5.txt
- asciidoc -b xhtml11 -d manpage $<
+ $(ASCIIDOC) -b xhtml11 -d manpage $<
%.5.xml : %.5.txt
- asciidoc -b docbook -d manpage -aversion=$(VERSION) $<
+ $(ASCIIDOC) -b docbook -d manpage -aversion=$(VERSION) $<
%.5 : %.5.xml
- xmlto -m manpage.xsl man $<
+ $(XMLTO) -m manpage.xsl man $<
%.html : %.txt
- asciidoc -b xhtml11 -d article -n $<
+ $(ASCIIDOC) -b xhtml11 -d article -n $<
%.xml : %.txt
- asciidoc -b docbook -d article $<
+ $(ASCIIDOC) -b docbook -d article $<
%.html-chunked : %.xml
- xmlto html -o $@ $<
+ $(XMLTO) html -o $@ $<
index 8e18e60bb08f5d1d66cac948c465045f7dc7034c..fdde1aff27923a013c0e22c6024fe13b3d905464 100644 (file)
--- a/TODO
+++ b/TODO
part of the commit detail information you display on the lower pane
(log/diff view).
- - Use autoconf to check for the AsciiDoc and XmlTo document tools.
-
- Use non-blocking I/O + select() for incremental loading of view
input. (debian bug #427093)
diff --git a/config.make.in b/config.make.in
index aab449b5819de5ae1db4f99785e990285f641a8e..9a462dbb4e29540add0acd83b9b18cb046f4dac8 100644 (file)
--- a/config.make.in
+++ b/config.make.in
mandir = @mandir@
docdir = @docdir@
datarootdir = @datarootdir@
+ASCIIDOC = @ASCIIDOC@
+XMLTO = @XMLTO@
+DOCBOOK2PDF = @DOCBOOK2PDF@
diff --git a/configure.ac b/configure.ac
index 0c060ce900fab5cf89d6102abfd4ed2c8adb7ca3..f60d43eab2424a50f64bf3478762117dbe8016c9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_PROG_CC
AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config])
AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program])
+AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
+AC_CHECK_PROGS(XMLTO, [xmlto false])
+AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
AC_CONFIG_FILES([config.make])
AC_OUTPUT