we want a html man file on the webserver
authorswa <swa@users.sourceforge.net>
Wed, 27 Mar 2002 10:30:11 +0000 (10:30 +0000)
committerswa <swa@users.sourceforge.net>
Wed, 27 Mar 2002 10:30:11 +0000 (10:30 +0000)
GNUmakefile.in

index 1b9f5da..a122acd 100644 (file)
@@ -1,6 +1,6 @@
 # Note:  Makefile is built automatically from Makefile.in
 #
 # 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/
 #
 # Written by and Copyright (C) 2001 the SourceForge
 # Privoxy team. http://www.privoxy.org/
@@ -398,7 +398,7 @@ tarball-clean:
 # converts doc/source/*.sgml into html, text and man pages
 #
 #############################################################################
 # 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
        mkdir -p doc/text doc/man
 #  user manual
        rm -rf doc/webserver/user-manual
@@ -413,6 +413,15 @@ dok: doc/source/ldpOK.dsl
        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
 
        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
 redhat-dok: doc/source/ldpOK.dsl man2html
        mkdir -p doc/text doc/man doc/source/user-manual \
           doc/source/developer-manual doc/source/faq
@@ -563,6 +572,9 @@ install: all
 ## end:
 
 # $Log: GNUmakefile.in,v $
 ## 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!
 #
 # Revision 1.32  2002/03/26 22:29:54  swa
 # we have a new homepage!
 #