# Note: Makefile is built automatically from Makefile.in
#
-# $Id: GNUmakefile.in,v 1.32 2002/03/26 22:29:54 swa Exp $
+# $Id: GNUmakefile.in,v 1.33 2002/03/27 03:05:35 hal9 Exp $
#
# Written by and Copyright (C) 2001 the SourceForge
# Privoxy team. http://www.privoxy.org/
# converts doc/source/*.sgml into html, text and man pages
#
#############################################################################
-dok: doc/source/ldpOK.dsl
+dok: doc/source/ldpOK.dsl man2html-swa
mkdir -p doc/text doc/man
# user manual
rm -rf doc/webserver/user-manual
cd doc/source && $(DB2HTML) -s ldpOK.dsl faq.sgml && mv faq ../webserver
cd doc/source && $(DB2HTML) -s ldpOK.dsl --nochunks faq.sgml > tmp.html && lynx -dump tmp.html > ../text/faq.txt && rm -rf tmp.html faq
+man2html-swa:
+ if [ "$(MAN2HTML)" != "false" ]; then \
+ mkdir -p doc/webserver/man-page; \
+ $(ECHO) "<html><head><title>Privoxy|Doc/Man page</title><link rel=\"stylesheet\" type=\"text/css\" href=\"../p_web.css\"></head><body><H2>NAME</H2>" > doc/webserver/man-page/privoxy-man-page.html; \
+ man ./privoxy.1 | $(MAN2HTML) -bare \
+ >> doc/webserver/man-page/privoxy-man-page.html; \
+ $(ECHO) "</body></html>" >> doc/webserver/man-page/privoxy-man-page.html; \
+ fi
+
redhat-dok: doc/source/ldpOK.dsl man2html
mkdir -p doc/text doc/man doc/source/user-manual \
doc/source/developer-manual doc/source/faq
## end:
# $Log: GNUmakefile.in,v $
+# Revision 1.33 2002/03/27 03:05:35 hal9
+# Added man2html target for docs (redhat-dok only for now)
+#
# Revision 1.32 2002/03/26 22:29:54 swa
# we have a new homepage!
#