root/juggler/trunk/Makefile.docs

Revision 20974, 5.4 kB (checked in by patrick, 7 months ago)

Copyright update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # ************** <auto-copyright.pl BEGIN do not edit this line> **************
2 #
3 # VR Juggler is (C) Copyright 1998-2008 by Iowa State University
4 #
5 # Original Authors:
6 #   Allen Bierbaum, Christopher Just,
7 #   Patrick Hartling, Kevin Meinert,
8 #   Carolina Cruz-Neira, Albert Baker
9 #
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License as published by the Free Software Foundation; either
13 # version 2 of the License, or (at your option) any later version.
14 #
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 # Library General Public License for more details.
19 #
20 # You should have received a copy of the GNU Library General Public
21 # License along with this library; if not, write to the
22 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 # Boston, MA 02111-1307, USA.
24 #
25 # *************** <auto-copyright.pl END do not edit this line> ***************
26
27 # =============================================================================
28 # This file is used only for generating and installing documentation.  The
29 # variable $(webroot) should be assigned an appropriate value in order for
30 # an installation to work correctly.
31 #
32 # The following environment variables must be set to be able to build all the
33 # documentation:
34 #
35 #    DOCBOOK_ROOT   - The directory containing the DocBook XSL stylesheets and
36 #                     the tools needed to render DocBook documents (Batik,
37 #                     FOP, Saxon, and Xalan-J). This may be set as a "build
38 #                     variable" using a command line argumen to make(1).
39 #    JAVA_HOME      - The root directory of the Java runtime installation.
40 #    TWEEK_BASE_DIR - The root directory of a Tweek Java API installation
41 #                     (using <buildir>/instlinks works fine).
42 #    TWEEK_VERSION  - The version of the Tweek Java API installation (see
43 #                     modules/tweek/VERSION).
44 #    JCCL_BASE_DIR  - The root directory of a JCCL Java API installation
45 #                     (using <buildir>/instlinks works fine).
46 #    JCCL_VERSION   - The version of the JCCL Java API installation (see
47 #                     modules/jackal/VERSION).
48 #
49 # Furthermore, the 'doxygen' command must be in the user's path, and it is
50 # generally best if the Graphviz tools are also in the user's path.
51 #
52 # NOTE: At present, building the Java API references for JCCL and VRJConfig is
53 # rather a pain. The javadoc command needs to be able to download information
54 # from www.vrjuggler.org for the Tweek and JCCL Java APIs to generate fully
55 # hyperlinked content, but the automated documentation rendering process
56 # complicates this. In some cases, it may be necessary to render the Tweek Java
57 # API documentation & upload it and then render the JCCL Java API documentation
58 # & upload it. At that point, it is then possible to render all the Java API
59 # documentation using the automated process. Ugh.
60 # -----------------------------------------------------------------------------
61 # This makefile requires the use of GNU make.
62 # =============================================================================
63
64 # ******** Fill these in!! ********
65 webroot=        $(HOME)/public_html/jugglerweb
66 distroot=       $(HOME)/vrj-docs.dist
67 # *********************************
68
69 SUBDIR=         doc/build.system                                \
70                 modules/gadgeteer/doc                           \
71                 modules/gadgeteer/doc/device.driver.guide       \
72                 modules/jackal/doc                              \
73                 modules/sonix/doc                               \
74                 modules/tweek/doc                               \
75                 modules/tweek/doc/programmer.guide              \
76                 modules/vapor/doc                               \
77                 modules/vapor/doc/programmer.guide              \
78                 modules/vrjuggler/doc/doxy                      \
79                 modules/vrjuggler/doc/getting.started.guide     \
80                 modules/vrjuggler/doc/programmer.guide
81
82 JAVADOC_SUBDIR= modules/tweek/java              \
83                 modules/jackal                  \
84                 modules/vrjuggler/vrjconfig
85
86 all:
87 ifndef TWEEK_BASE_DIR
88         $(warning TWEEK_BASE_DIR is not set)
89 endif
90 ifndef TWEEK_VERSION
91         $(warning TWEEK_VERSION is not set)
92 endif
93 ifndef JCCL_BASE_DIR
94         $(warning JCCL_BASE_DIR is not set)
95 endif
96 ifndef JCCL_VERSION
97         $(warning JCCL_VERSION is not set)
98 endif
99         @for dir in $(SUBDIR) ; do                              \
100             echo "===> $$dir" ;                                 \
101             $(MAKE) -C $$dir docs || exit 1;                    \
102             echo "<=== $$dir" ;                                 \
103           done
104         @for dir in $(JAVADOC_SUBDIR) ; do                      \
105             echo "===> $$dir" ;                                 \
106             $(MAKE) -C $$dir -f Makefile.docs docs || exit 1;   \
107             echo "<=== $$dir" ;                                 \
108           done
109
110 install:
111         @for dir in $(SUBDIR) ; do                                      \
112             echo "===> $$dir" ;                                         \
113             $(MAKE) -C $$dir webroot=$(webroot) install-docs || exit 1; \
114             echo "<=== $$dir" ;                                         \
115           done
116         @for dir in $(JAVADOC_SUBDIR) ; do                              \
117             echo "===> $$dir" ;                                         \
118             $(MAKE) -C $$dir -f Makefile.docs install-docs || exit 1;   \
119             echo "<=== $$dir" ;                                         \
120           done
121
122 .PHONY: release
123
124 release:
125         -[ ! -d "$(distroot)" ] && mkdir -p "$(distroot)"
126         cp doc/dist/index.html "$(distroot)/"
127         cp "$(webroot)/base_style.css" "$(distroot)/"
128         $(MAKE) -f Makefile.docs webroot="$(distroot)" install
129
130 clobber:
131         @for dir in $(SUBDIR) ; do                                      \
132             echo "===> $$dir" ;                                         \
133             $(MAKE) -C $$dir clobber || exit 1;                         \
134             echo "<=== $$dir" ;                                         \
135           done
136         for dir in $(JAVADOC_SUBDIR) ; do                               \
137             echo "===> $$dir" ;                                         \
138             $(MAKE) -C $$dir -f Makefile.docs clobber || exit 1;        \
139             echo "<=== $$dir" ;                                         \
140           done
Note: See TracBrowser for help on using the browser.