2001-06-15 04:09:05 +04:00
|
|
|
SECTIONS=user documentation development
|
|
|
|
EXTRA_INSTALL_LIST=README alldocs.html
|
|
|
|
REMOTE_HOST=shell.sf.net
|
|
|
|
REMOTE_PATH=/home/groups/b/bo/bochs/htdocs/tmp/docbooktest
|
|
|
|
SSH_PATH=ssh
|
2001-06-09 11:00:58 +04:00
|
|
|
|
2001-06-15 04:09:05 +04:00
|
|
|
all: $(SECTIONS)
|
2001-06-09 11:00:58 +04:00
|
|
|
|
2001-06-15 04:09:05 +04:00
|
|
|
# this assumes that for each section [S], there is a subdirectory called
|
|
|
|
# [S] and the main file to render is [S]/[S].dbk.
|
|
|
|
$(SECTIONS)::
|
|
|
|
# render the docbook for each section
|
|
|
|
cd $@; docbook2ps $@.dbk
|
|
|
|
cd $@; docbook2pdf $@.dbk
|
|
|
|
cd $@; docbook2html $@.dbk
|
2001-06-09 11:00:58 +04:00
|
|
|
|
2001-06-15 04:09:05 +04:00
|
|
|
webinst:
|
|
|
|
@echo Installing documentation on $(REMOTE_PATH)
|
|
|
|
if test "`whoami`" = bryce; then sfuser=bdenney; \
|
|
|
|
else sfuser=`whoami`; fi; \
|
|
|
|
tar cf - $(SECTIONS) $(EXTRA_INSTALL_LIST) | \
|
|
|
|
ssh -x $$sfuser@$(REMOTE_HOST) "cd $(REMOTE_PATH) && 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 \
|
|
|
|
rm -f $$S/*.html $$S/*.ps $$S/*.pdf $$S/*.out; \
|
|
|
|
done
|