################################################################### # doc/docbook/Makefile # $Id: Makefile.jade,v 1.2 2002-12-13 17:23:00 bdenney Exp $ # # Builds documentation in various formats from SGML source, and # allows easy update to the Bochs web site. # ################################################################### # name of the major documentation sections SECTIONS=user documentation development # these files get installed in addition to the sections EXTRAS=README index.html images include # complete list of what to install INSTALL_LIST=$(SECTIONS) $(EXTRAS) # ssh to this server to install the docs REMOTE_HOST=shell.sf.net # path of preexisting install in, on the remote server. Each section # will go into a subdirectory of $REMOTE_PATH, as in # $REMOTE_PATH/user. REMOTE_PATH=/home/groups/b/bo/bochs/htdocs/doc/docbook # -x means don't try to forward X authorization, it won't work for SF SSH=ssh -x # docbook defines and stuff DSSSL_ROOT=/usr/share/sgml/docbook/stylesheet/dsssl/modular/ HTML_STYLESHEET=$(DSSSL_ROOT)/html/docbook.dsl JADE=jade JADE_ARGS=-t sgml -d $(HTML_STYLESHEET) # -V nochunks SGML_VALIDATE=nsgmls -s all: all_html all_html: user/book1.html documentation/book1.html development/book1.html user/book1.html: user/user.dbk rm -f user/*.htm* export i=user; cd $$i; $(JADE) $(JADE_ARGS) $$i.dbk cp user/book1.htm user/book1.html documentation/book1.html: documentation/documentation.dbk rm -f documentation/*.htm* export i=documentation; cd $$i; $(JADE) $(JADE_ARGS) $$i.dbk cp documentation/book1.htm documentation/book1.html development/book1.html: development/development.dbk rm -f development/*.htm* export i=development; cd $$i; $(JADE) $(JADE_ARGS) $$i.dbk cp development/book1.htm development/book1.html validate:: for i in $(SECTIONS); do $(SGML_VALIDATE) $$i/$$i.dbk; done # install the stuff on the remote server using ssh. The bryce->bdenney # stuff is just because Bryce's local username and sourceforge # username don't match. If your usernames match then the "whoami" # will work ok. webinst: #all # fix