Code

- new mailgw config item unpack_rfc822 that unpacks message attachments
[roundup.git] / doc / Makefile
index 987dfe7071249eaccb6ccda635c58dea3b3599e5..88312c7af7a09a9617509c51a7a219292432306e 100644 (file)
@@ -1,17 +1,28 @@
-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 \
-    glossary.txt implementation.txt index.txt design.txt \
-    installation.txt security.txt upgrading.txt user_guide.txt \
-    maintenance.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} --report=warning -d $< $@
+       ${STXTOHTML} --report=warning -d $< $@
+
+%.ht: %.txt
+       ${STXTOHT} --report=warning -d $< $@
 
 clean:
        rm -f ${COMPILED}