diff --git a/doc/Makefile b/doc/Makefile
index 1141e1432e97b0431a77afc32ef53eb5cfa3b087..88312c7af7a09a9617509c51a7a219292432306e 100644 (file)
--- a/doc/Makefile
+++ b/doc/Makefile
-PYTHON = /usr/bin/python2
-STXTOHTML = -c "from docutils.core import publish;publish(writer_name='html')"
+STXTOHTML = rst2html.py
+STXTOHT = rst2ht.py
+WEBDIR = ../../htdocs/htdocs/doc-1.0
SOURCE = announcement.txt customizing.txt developers.txt FAQ.txt features.txt \
- getting_started.txt glossary.txt implementation.txt index.txt \
- installation.txt security.txt upgrading.txt user_guide.txt
+ glossary.txt implementation.txt index.txt design.txt mysql.txt \
+ installation.txt upgrading.txt user_guide.txt admin_guide.txt \
+ postgresql.txt tracker_templates.txt xmlrpc.txt
COMPILED := $(SOURCE:.txt=.html)
+WEBHT := $(SOURCE:.txt=.ht)
-all: ${COMPILED}
+all: html ht
+html: ${COMPILED}
+ht: ${WEBHT}
+
+website: ${WEBHT}
+ cp *.ht ${WEBDIR}
+ cp -r images ${WEBDIR}
%.html: %.txt
- ${PYTHON} ${STXTOHTML} -d $< $@
+ ${STXTOHTML} --report=warning -d $< $@
+
+%.ht: %.txt
+ ${STXTOHT} --report=warning -d $< $@
+clean:
+ rm -f ${COMPILED}