Changeset 19762

Show
Ignore:
Timestamp:
01/08/07 15:26:32 (2 years ago)
Author:
patrick
Message:

Update to the latest version of this file from the VR Juggler SVN trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/trunk/doc/docbook.mk

    r17633 r19762  
    11# ************** <auto-copyright.pl BEGIN do not edit this line> ************** 
    22# 
    3 # VR Juggler is (C) Copyright 1998-2005 by Iowa State University 
     3# VR Juggler is (C) Copyright 1998-2007 by Iowa State University 
    44# 
    55# Original Authors: 
     
    2323# Boston, MA 02111-1307, USA. 
    2424# 
    25 # ----------------------------------------------------------------- 
    26 # File:          docbook.mk,v 
    27 # Date modified: 2005/05/30 15:00:04 
    28 # Version:       1.58 
    29 # ----------------------------------------------------------------- 
    30 # 
    3125# *************** <auto-copyright.pl END do not edit this line> *************** 
    3226 
     
    4539 
    4640# Software and stylesheet versions. 
    47 DOCBOOK_XSL_VERSION?=   1.68.1 
    48 XALAN_VERSION?=         2_5_2 
    49 SAXON_VERSION?=         6.5.2 
     41DOCBOOK_XSL_VERSION?=   1.71.1 
     42XALAN_VERSION?=         2_7_0 
     43SAXON_VERSION?=         6.5.5 
    5044FOP_VERSION?=           0.20.5 
    5145BATIK_VERSION?=         1.5.1 
     46 
     47ifeq ($(FOP_VERSION), 0.20.5) 
     48FOP_SCRIPT=     fop.sh 
     49else 
     50FOP_SCRIPT=     fop 
     51endif 
    5252 
    5353# Installation paths. 
     
    6161DVIPDF?=        dvipdf 
    6262DVIPS?=         dvips 
    63 FOP?=           sh $(DOCBOOK_ROOT)/fop-$(FOP_VERSION)/fop.sh 
     63FOP?=           sh $(DOCBOOK_ROOT)/fop-$(FOP_VERSION)/$(FOP_SCRIPT) 
    6464HTML2TXT?=      html2text 
    6565HTML2TXTOPTS?=  -ascii -nobs -style pretty -width 76 -rcfile html2text.rc 
     
    8282XSLTPROC?=      /usr/bin/xsltproc 
    8383 
    84 FO_VERSION?=  FOP 
     84FO_TOOL?=     FOP 
    8585XSLT_TOOL?=     Xalan 
     86 
     87recursive_copy= tar --exclude .svn --exclude CVS -chvf - $(1) | tar -C $(2) -xpf - 
    8688 
    8789# Use one of the following depending on what will be processing the generated 
    8890# FO.  The default is to use FOP.  XEP or Passive TeX can be used instead by 
    8991# defining $(USE_XEP) or $(USE_PASSIVE_TEX) respectively. 
    90 ifeq ($(FO_VERSION), FOP) 
     92ifeq ($(FO_TOOL), FOP) 
     93ifeq ($(FOP_VERSION), 0.20.5) 
    9194   XALAN_FO_PARAMS=     -PARAM fop.extensions "1" -PARAM alignment "start" 
    9295   SAXON_FO_PARAMS=     fop.extensions=1 alignment="start" 
    9396else 
    94 ifeq ($(FO_VERSION), XEP) 
     97   XALAN_FO_PARAMS=     -PARAM fop1.extensions "1" -PARAM alignment "start" 
     98   SAXON_FO_PARAMS=     fop1.extensions=1 alignment="start" 
     99endif 
     100endif 
     101ifeq ($(FO_TOOL), XEP) 
    95102   XALAN_FO_PARAMS=     -PARAM xep.extensions "1" 
    96103   SAXON_FO_PARAMS=     xep.extensions=1 
    97 else 
    98 ifeq ($(FO_VERSION), PASSIVE_TEX) 
     104endif 
     105ifeq ($(FO_TOOL), PASSIVE_TEX) 
    99106   XALAN_FO_PARAMS=     -PARAM passivetex.extensions "1"                \ 
    100107                        -PARAM tex.math.in.alt "latex" 
    101108   SAXON_FO_PARAMS=     passivetex.extensions=1 tex.math.in.alt=latex 
    102 endif # PASSIVE_TEX 
    103 endif # XEP 
    104 endif # FOP 
     109endif 
    105110 
    106111SAXON_HTML_PARAMS=      html.stylesheet=base_style.css 
     
    167172endif 
    168173ifdef INSTALL_DIRS 
    169         cp -r $(INSTALL_DIRS) $(prefix
     174        $(call recursive_copy, $(INSTALL_DIRS), $(prefix)
    170175endif 
    171176ifdef NEED_DB_IMAGES 
    172         cp -RH images $(prefix)/ 
     177        $(call recursive_copy, images, $(prefix)) 
    173178endif 
    174179endif 
     
    181186        for file in $(XML_FILES) ; do \ 
    182187            dir=`echo $$file | sed -e 's/\.xml//'` ; \ 
    183             cp -r $$dir $(prefix)/ ; \ 
     188            $(call recursive_copy, $$dir, $(prefix)) ; \ 
    184189            if [ ! -z "$(INSTALL_FILES)" ]; then \ 
    185190                cp $(INSTALL_FILES) $(prefix)/$$dir ; \ 
    186191            fi ; \ 
    187192            if [ ! -z "$(NEED_DB_IMAGES)" ]; then \ 
    188                 cp -RH images $(prefix)/$$dir ; \ 
     193                $(call recursive_copy, images, $(prefix)/$$dir) ; \ 
    189194            fi ; \ 
    190195            if [ ! -z "$(INSTALL_DIRS)" ]; then \ 
    191                 cp -r $(INSTALL_DIRS) $(prefix)/$$dir ; \ 
     196                $(call recursive_copy, $(INSTALL_DIRS), $(prefix)/$$dir) ; \ 
    192197            fi ; \ 
    193198          done 
     
    233238            fi ; \ 
    234239            if [ ! -z "$(INSTALL_DIRS)" ]; then \ 
    235                 cp -r $(INSTALL_DIRS) $$dir ; \ 
     240                $(call recursive_copy, $(INSTALL_DIRS), $$dir) ; \ 
    236241            fi ; \ 
    237242            cur_dir=`pwd` ; \ 
     
    265270 
    266271# Generate a PDF file from an FO file using FOP. 
    267 ifeq ($(FO_VERSION), FOP) 
     272ifeq ($(FO_TOOL), FOP) 
    268273$(PDF_FILES): $(FO_FILES) 
    269274$(TXT_FILES): $(FO_FILES) 
     
    305310# Generate a PDF file from an XML file using PassiveTeX.  This one requires 
    306311# that a simple TeX file be generated from the XML first (see below). 
    307 ifeq ($(FO_VERSION), PASSIVE_TEX) 
     312ifeq ($(FO_TOOL), PASSIVE_TEX) 
    308313$(PDF_FILES): $(FO_FILES) 
    309314 
     
    325330# Generate a PDF file using XEP from RenderX.  This requires that an FO file 
    326331# be generated first. 
    327 ifeq ($(FO_VERSION), XEP) 
     332ifeq ($(FO_TOOL), XEP) 
    328333$(PDF_FILES): $(FO_FILES) 
    329334