# Note: Makefile is built automatically from Makefile.in
#
-# $Id: GNUmakefile.in,v 1.104.2.15 2002/08/11 20:02:41 hal9 Exp $
+# $Id: GNUmakefile.in,v 1.104.2.17 2002/08/16 03:19:34 hal9 Exp $
#
# Written by and Copyright (C) 2001 the SourceForge
# Privoxy team. http://www.privoxy.org/
# Make pdf docs from single page html. Requires htmldoc, see
# (http://www.easysw.com/htmldoc/). Note: 1.8.20 has a TOC bug.
-# $(PERL) -pi.bak -e 's/(<\/?)SUB/$$1small/i' privoxy-$$i.html
+# PDF docs are uploaded to webserver as zip archive.
dok-pdf: dok-shtml
@$(ECHO) -n "starting htmldoc version: "; htmldoc --version
- cd utils/ldp_print && $(RM) *html *bak *jpg *tmp *pdf
+ cd utils/ldp_print && $(RM) *html *bak *jpg *tmp *pdf *zip
cp -f doc/source/temp/*html doc/webserver/images/*jpg utils/ldp_print
cd utils/ldp_print ;\
- $(PERL) -pi.bak -e 's/\.\.\/images\///; s/(<\/?)SUB/$$1small/i' *.html ;\
+ $(PERL) -pi.bak -e 's/\.\.\/images\///; s/(<\/?)SUB/$$1small/i;\
+ s/\.\.\/user-manual\/index\.html/privoxy-user-manual.pdf/;\
+ s/\.\.\/developer-manual\/index\.html/privoxy-developer-manual.pdf/;\
+ s/\.\.\/faq\/index\.html/privoxy-faq.pdf/' *.html ;\
for i in developer-manual user-manual faq; do \
./ldp_print privoxy-$$i.html ;\
$(ECHO) DONE: privoxy-$$i.pdf ;\
done ;\
- $(MV) *.pdf ../../doc/pdf ;\
- $(RM) -r *html *bak *jpg ../source/temp
+ $(MV) *.pdf ../../doc/pdf ;\
+ $(RM) -r *html *bak *jpg *pdf *zip ../../doc/source/temp
# Create release announcement in text and html, with short and long versions.
# This is a standalone target, and must be invoked directly.
@cd doc/webserver; \
upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \
$(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/; tar xvm 2>&1 | grep -v timestamp'
+
@$(ECHO) Uploading pdf
- @cd doc;\
- upload="pdf/*pdf"; \
- $(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/; tar xvm 2>&1 | grep -v timestamp'
+ @cd doc/pdf;\
+ zip privoxy-pdf-docs *.pdf ;\
+ scp -q privoxy-pdf-docs.zip ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/pdf
@$(ECHO) Fixing permissions
@ssh ijbswa.sourceforge.net 'chmod -R 775 /home/groups/i/ij/ijbswa/htdocs 2>/dev/null; true'
etags $(SRCS) $(HDRS)
install: all
- #
- # FIXME: This is a dirty hack to have an install target
- # that works at least for some setups. This needs
- # to be fixed!
- #
+ @$(ECHO) "***************************************************"; \
+ $(ECHO) "*** ***"; \
+ $(ECHO) "*** WARNING ***"; \
+ $(ECHO) "*** ***"; \
+ $(ECHO) "*** The install target is very broken and ***"; \
+ $(ECHO) "*** should not be used. For the time being, ***"; \
+ $(ECHO) "*** run from the build dir, install manually, ***"; \
+ $(ECHO) "*** or use a binary package. Sorry. ***"; \
+ $(ECHO) "*** ***"; \
+ $(ECHO) "***************************************************"; \
+ $(ECHO) "Type \"yes i am sure\" if you are sure that you"; \
+ $(ECHO) -n "really want to proceed with the broken install: "; \
+ read answer; \
+ if [ "$$answer" != "yes i am sure" ]; then exit 1; fi
+
+ # FIXME!
+
$(STRIP_PROG) $(PROGRAM)
$(INSTALL) $(INSTALL_D) $(SBIN_DEST)
$(INSTALL) $(INSTALL_D) $(DEST)/user-manual
## end:
# $Log: GNUmakefile.in,v $
+# Revision 1.104.2.17 2002/08/16 03:19:34 hal9
+# More (minor) cleanup of html before pdf processing to make some relative
+# links work as pdf -> pdf. Upload pdf as zip archive now.
+#
+# Revision 1.104.2.16 2002/08/14 16:43:27 hal9
+# Added pdf docs to make webserver target.
+#
# Revision 1.104.2.15 2002/08/11 20:02:41 hal9
# New targets for man page (make man) and pdf (make dok-pdf) targets.
#