root/juggler/trunk/doc/doxygen.mk

Revision 20974, 2.6 kB (checked in by patrick, 9 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 DOXYGEN?=               doxygen
28 HTML_OUTPUT_DIR?=       html
29 LATEX_OUTPUT_DIR?=      latex
30 MAN_OUTPUT_DIR?=        man
31 RTF_OUTPUT_DIR?=        rtf
32
33 # Extract the Doxygen version information.
34 DOXYGEN_VERSION=        $(shell $(DOXYGEN) --version)
35 DOXYGEN_VERSION_NUMS=   $(subst ., , $(DOXYGEN_VERSION))
36 DOXYGEN_VERSION_MAJOR=  $(word 1, $(DOXYGEN_VERSION_NUMS))
37 DOXYGEN_VERSION_MINOR=  $(word 2, $(DOXYGEN_VERSION_NUMS))
38
39 RM=             rm -f
40
41 html: $(HTML_DOXYGEN_FILE)
42         $(DOXYGEN) $(HTML_DOXYGEN_FILE)
43
44 man: $(MAN_DOXYGEN_FILE)
45         $(DOXYGEN) $(MAN_DOXYGEN_FILE)
46
47 latex: $(LATEX_DOXYGEN_FILE)
48         $(DOXYGEN) $(LATEX_DOXYGEN_FILE)
49
50 ps: $(LATEX_OUTPUT_DIR)
51         $(MAKE) -C $(LATEX_OUTPUT_DIR) ps
52
53 # Doxygen 1.2 uses the target name 'pdf' to generate a PDF manual from LaTeX.
54 # Doxygen 1.3 and newer use the target name 'refman.pdf'.
55 pdf: $(LATEX_OUTPUT_DIR)
56 ifeq ($(DOXYGEN_VERSION_MINOR), 2)
57         $(MAKE) -C $(LATEX_OUTPUT_DIR) pdf
58 else
59         $(MAKE) -C $(LATEX_OUTPUT_DIR) refman.pdf
60 endif
61
62 rtf:
63         $(DOXYGEN) $(RTF_DOXYGEN_FILE)
64
65 install-html:
66         if [ ! -d $(prefix) ]; then mkdir -p $(prefix); fi
67         cp -r $(HTML_OUTPUT_DIR)/* $(prefix)
68
69 install-ps:
70         if [ ! -d $(prefix) ]; then mkdir -p $(prefix); fi
71         cp $(LATEX_OUTPUT_DIR)/refman.ps $(prefix)
72
73 install-pdf:
74         if [ ! -d $(prefix) ]; then mkdir -p $(prefix); fi
75         cp $(LATEX_OUTPUT_DIR)/refman.pdf $(prefix)
76
77 clean:
78 ifneq ($(CLEAN_FILES), )
79         $(RM) $(CLEAN_FILES)
80 endif
81 ifneq ($(CLEAN_DIRS), )
82         $(RM) -r $(CLEAN_DIRS)
83 endif
84
85 clobber:
86         @$(MAKE) clean
87 ifneq ($(CLOBBER_FILES), )
88         $(RM) $(CLOBBER_FILES)
89 endif
90         $(RM) -r $(HTML_OUTPUT_DIR) $(MAN_OUTPUT_DIR)                   \
91           $(LATEX_OUTPUT_DIR) $(RTF_OUTPUT_DIR) $(CLOBBER_DIRS)
Note: See TracBrowser for help on using the browser.