2001-06-15 04:40:42 +04:00
|
|
|
###################################################################
|
|
|
|
# doc/docbook/Makefile
|
2002-12-13 20:52:16 +03:00
|
|
|
# $Id: Makefile.in,v 1.3 2002-12-13 17:52:16 bdenney Exp $
|
2001-06-15 04:40:42 +04:00
|
|
|
#
|
|
|
|
# Builds documentation in various formats from SGML source, and
|
|
|
|
# allows easy update to the Bochs web site.
|
|
|
|
#
|
|
|
|
###################################################################
|
|
|
|
|
2002-12-13 20:20:27 +03:00
|
|
|
prefix = @prefix@
|
|
|
|
docdir = $(prefix)/share/doc/bochs
|
2002-12-13 20:52:16 +03:00
|
|
|
DOCBOOK2HTML = @DOCBOOK2HTML@
|
2002-12-13 20:20:27 +03:00
|
|
|
|
2001-06-15 04:40:42 +04:00
|
|
|
# name of the major documentation sections
|
2001-06-15 04:09:05 +04:00
|
|
|
SECTIONS=user documentation development
|
2002-12-13 20:20:27 +03:00
|
|
|
SECTION_HTML=$(SECTIONS:%=%/book1.html)
|
2001-06-15 04:40:42 +04:00
|
|
|
|
|
|
|
# these files get installed in addition to the sections
|
2002-12-13 20:20:27 +03:00
|
|
|
EXTRAS=README index.html
|
2001-06-15 04:40:42 +04:00
|
|
|
|
|
|
|
# complete list of what to install
|
|
|
|
INSTALL_LIST=$(SECTIONS) $(EXTRAS)
|
|
|
|
|
|
|
|
# ssh to this server to install the docs
|
2001-06-15 04:09:05 +04:00
|
|
|
REMOTE_HOST=shell.sf.net
|
2001-06-15 04:40:42 +04:00
|
|
|
|
2002-12-13 20:20:27 +03:00
|
|
|
# path of preexisting install on the remote server. Each section
|
2001-06-15 04:40:42 +04:00
|
|
|
# will go into a subdirectory of $REMOTE_PATH, as in
|
|
|
|
# $REMOTE_PATH/user.
|
2001-06-16 04:23:33 +04:00
|
|
|
REMOTE_PATH=/home/groups/b/bo/bochs/htdocs/doc/docbook
|
2001-06-15 04:40:42 +04:00
|
|
|
|
|
|
|
# -x means don't try to forward X authorization, it won't work for SF
|
|
|
|
SSH=ssh -x
|
2001-06-09 11:00:58 +04:00
|
|
|
|
2002-12-13 20:20:27 +03:00
|
|
|
all: $(SECTION_HTML)
|
|
|
|
|
|
|
|
user/book1.html: user/user.dbk
|
2002-12-13 20:52:16 +03:00
|
|
|
cd user; $(DOCBOOK2HTML) user.dbk
|
2002-12-13 20:20:27 +03:00
|
|
|
documentation/book1.html: documentation/documentation.dbk
|
2002-12-13 20:52:16 +03:00
|
|
|
cd documentation; $(DOCBOOK2HTML) documentation.dbk
|
2002-12-13 20:20:27 +03:00
|
|
|
development/book1.html: development/development.dbk
|
2002-12-13 20:52:16 +03:00
|
|
|
cd development; $(DOCBOOK2HTML) development.dbk
|
2002-12-13 20:20:27 +03:00
|
|
|
|
|
|
|
fixperm::
|
2001-06-15 04:40:42 +04:00
|
|
|
# fix permissions locally so that tar will install things right
|
|
|
|
chmod 664 `find $(INSTALL_LIST) -type f -print`
|
|
|
|
chmod 775 `find $(INSTALL_LIST) -type d -print`
|
2002-12-13 20:20:27 +03:00
|
|
|
|
|
|
|
install: all
|
|
|
|
for i in $(INSTALL_LIST); do cp -r $$i $(DESTDIR)$(docdir); done
|
|
|
|
|
|
|
|
test_sfuser:
|
|
|
|
@if test "$$SFUSER" = ""; then SFUSER=`whoami`; export SFUSER; fi; \
|
|
|
|
echo Your Source Forge username is $${SFUSER}.
|
|
|
|
@echo 'If this is not correct, set the environment variable $$SFUSER.'
|
|
|
|
|
|
|
|
# Install the stuff on the remote server using ssh. It will assume that your
|
|
|
|
# local username is the same as your Source Forge username, unless you define
|
|
|
|
# an environment variable SFUSER.
|
|
|
|
webinst: all fixperm
|
2001-06-15 04:40:42 +04:00
|
|
|
# copy to remote
|
2001-06-15 04:09:05 +04:00
|
|
|
@echo Installing documentation on $(REMOTE_PATH)
|
2002-12-13 20:20:27 +03:00
|
|
|
if test "$$SFUSER" = ""; then SFUSER=`whoami`; export SFUSER; fi; \
|
|
|
|
tar cf - $(INSTALL_LIST) | \
|
|
|
|
$(SSH) $${SFUSER}@$(REMOTE_HOST) "cd $(REMOTE_PATH) && umask 002 && tar xvf -"
|
2001-06-09 11:00:58 +04:00
|
|
|
|
|
|
|
clean:
|
2001-06-15 04:09:05 +04:00
|
|
|
#remove generated files
|
|
|
|
for S in $(SECTIONS); do \
|
2002-12-05 23:53:13 +03:00
|
|
|
rm -f $$S/*.html $$S/*.htm $$S/*.ps $$S/*.pdf $$S/*.out; \
|
2001-06-15 04:09:05 +04:00
|
|
|
done
|
2002-12-13 20:20:27 +03:00
|
|
|
|
|
|
|
dist-clean:
|
|
|
|
@RMCOMMAND@ Makefile
|