Commit 8d38f05c authored by Tollef Fog Heen's avatar Tollef Fog Heen

Hook changes.rst into build system

parent 7b841df8
......@@ -56,6 +56,12 @@ if test "x$RST2MAN" = "xno"; then
fi
AM_CONDITIONAL(HAVE_RST2MAN,[test "x$RST2MAN" != "xno"])
AC_CHECK_PROGS(RST2HTML, [rst2html rst2html.py], "no")
if test "x$RST2HTML" = "xno"; then
AC_MSG_WARN([rst2html not found – not building changelog])
fi
AM_CONDITIONAL(HAVE_RST2HTML,[test "x$RST2HTML" != "xno"])
# Checks for libraries.
save_LIBS="${LIBS}"
LIBS=""
......
......@@ -44,7 +44,8 @@ all: ${CHANGELOGS}
endif
EXTRA_DIST = ${CHANGELOGS} ${XML} \
changes.css changes-html.xsl
changes.css changes-html.xsl \
changes.rst changes.html
CLEANFILES = ${CHANGELOGS}
SUFFIXES = .xml .html
......@@ -59,6 +60,17 @@ else
@false
endif
changes.html: changes.rst
if HAVE_RST2HTML
${RST2HTML} $? $@
else
@echo "========================================"
@echo "You need rst2html installed to make dist"
@echo "========================================"
@false
endif
${CHANGELOGS}: changes-html.xsl
SUBDIRS = sphinx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment