Changeset 1259


Ignore:
Timestamp:
Apr 8, 2008, 2:00:23 AM (13 years ago)
Author:
Peter
Message:

working on #219

Location:
trunk/doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile.am

    r1257 r1259  
    2525# 02111-1307, USA.
    2626
     27.doxygen/variables: Makefile .doxygen doxygen.config
     28  @html=`$(SED) -n 's/^[ \t]*HTML_OUTPUT[ \t]*=[ \t]*//p' doxygen.config`;\
     29  if (test -z $$html); then html="html"; fi;\
     30  $(ECHO) "DX_HTML_OUTPUT=$$html" > $@
     31  @lt=`$(SED) -n 's/^[ \t]*LATEX_OUTPUT[ \t]*=[ \t]*//p' doxygen.config`;\
     32  if (test -z $$lt); then lt="latex"; fi;\
     33  $(ECHO) "DX_LATEX_OUTPUT=$$lt" >> $@
     34  @$(ECHO) "DX_RECURSIVE="\
     35  "`$(SED) -n 's/^[ \t]*RECURSIVE[ \t]*=[ \t]*//p' doxygen.config`" >> $@
     36  @$(ECHO) "DX_INPUT=\
     37  `$(SED) -n 's/^[ \t]*INPUT[ \t]*=[ \t]*//p' doxygen.config`" >> $@
     38  @$(ECHO) "DX_FILE_PATTERN=\
     39  `$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' doxygen.config`" >> $@
     40
     41.doxygen/deps: Makefile .doxygen .doxygen/variables FORCE
     42  @$(ECHO) $(ECHO_N) "DX_DEPENDENCIES=" > $@
     43  @dirs='$(DX_INPUT)'; for d in $$dirs; do \
     44    if (test -d $$d); then \
     45      list='$(DX_FILE_PATTERN)'; for p in $$list; do \
     46          $(ECHO) $(ECHO_N) `find $$d -name $$p|xargs` >> $@;\
     47          $(ECHO) $(ECHO_N) " " >> $@;\
     48      done;\
     49    else \
     50      $(ECHO) $(ECHO_N) "$$d " >> $@;\
     51    fi;\
     52  done;
     53  @$(ECHO)  >> $@;
     54  @$(ECHO) "# Dummie targets" >> $@;
     55  @dirs='$(DX_INPUT)'; for d in $$dirs; do \
     56    if (test -d $$d); then \
     57      list='$(DX_FILE_PATTERN)'; for p in $$list; do \
     58        files=`find $$d -name $$p`; for f in $$files; do \
     59    $(ECHO) "$$f:" >> $@;\
     60        done;\
     61      done;\
     62    else \
     63      $(ECHO) "$$d:" >> $@;\
     64    fi;\
     65  done
     66
     67.doxygen:;$(MKDIR_P) .doxygen
     68
     69
     70@am__include@ @am__quote@.doxygen/variables@am__quote@
     71@am__include@ @am__quote@.doxygen/deps@am__quote@
    2772if HAVE_DOXYGEN
    2873
     
    3075
    3176# these are supported by automake and *-local will add target to *
    32 dvi-local: $(PACKAGE).dvi
    33 ps-local: $(PACKAGE).ps
    34 pdf-local: $(PACKAGE).pdf
     77dvi-local: $(srcdir)/$(PACKAGE).dvi
     78ps-local: $(srcdir)/$(PACKAGE).ps
     79pdf-local: $(srcdir)/$(PACKAGE).pdf
     80html-local: $(DX_HTML_OUTPUT)/index.html
    3581
    36 html-local: doxygen.config
     82# this is not supported by automake - there is no target latex
     83latex-local: $(DX_LATEX_OUTPUT)/refman.tex
     84
     85$(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config $(DX_DEPENDENCIES)
    3786  @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | doxygen -;
    3887
    39 # this is not supported by automake - there is no target latex
    40 latex-local: doxygen.config
     88$(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config $(DX_DEPENDENCIES)
    4189  @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | doxygen -;
    4290
    43 $(PACKAGE).dvi: latex-local
    44   cd latex && latex refman.tex && latex refman.tex
    45   cp latex/refman.dvi $(PACKAGE).dvi
     91$(srcdir)/$(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex
     92  cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex
     93  cp $(DX_LATEX_OUTPUT)/refman.dvi $(srcdir)/$(PACKAGE).dvi
    4694
    47 $(PACKAGE).ps: $(PACKAGE).dvi
    48   dvips latex/refman.dvi -o $(PACKAGE).ps
     95$(srcdir)/$(PACKAGE).ps: $(PACKAGE).dvi
     96  cd $(DX_LATEX_OUTPUT) && dvips -o refman.ps refman.dvi;
     97  cp $(DX_LATEX_OUTPUT)/refman.ps $(srcdir)/$(PACKAGE).ps
    4998
    5099
    51 $(PACKAGE).pdf: latex-local
    52   cd latex && $(MAKE) pdf;
    53   cp latex/refman.pdf $(PACKAGE).pdf
     100$(srcdir)/$(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex
     101  cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf;
     102  cp $(DX_LATEX_OUTPUT)/refman.pdf $(srcdir)/$(PACKAGE).pdf
    54103
    55104endif
     
    63112
    64113install-html-am:
    65   if test -d "html"; then \
     114  if test -d $(DX_HTML_OUTPUT); then \
    66115  test -d $(DESTDIR)$(htmldir)/html || \
    67116    $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\
    68   $(INSTALL_DATA) html/* $(DESTDIR)$(htmldir)/html; \
     117  $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \
    69118  fi
    70119
     
    72121  @if test -f "$(PACKAGE).dvi"; then \
    73122  test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\
    74   $(INSTALL_DATA) $(PACKAGE).dvi $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
     123  $(INSTALL_DATA) $(srcdir)$(PACKAGE).dvi \
     124   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
    75125  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \
    76   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
     126   $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \
    77127  fi
    78128
     
    80130  @if test -f "$(PACKAGE).ps"; then \
    81131  test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\
    82   $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
    83   $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
     132  $(INSTALL_DATA) $(srcdir)$(PACKAGE).ps \
     133   $(DESTDIR)$(psdir)/$(PACKAGE).ps; \
     134  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\
    84135  fi
    85136
     
    87138  @if test -f "$(PACKAGE).pdf"; then \
    88139  test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\
    89   $(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
    90   $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
     140  $(INSTALL_DATA) $(srcdir)$(PACKAGE).pdf \
     141   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
     142  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \
     143   $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \
    91144  fi
    92145
    93146
    94147mostlyclean-local:
    95   rm -f $(PACKAGE).dvi *~
     148  rm -f *~
    96149
    97150clean-local:
    98   rm -rf doxygen.config html latex $(PACKAGE).dvi \
    99   $(PACKAGE).ps $(PACKAGE).pdf
     151  rm -rf doxygen.config
    100152
    101153FORCE:
     154
     155
  • trunk/doc/doxygen.config.in

    r1258 r1259  
    478478# put in front of it. If left blank `html' will be used as the default path.
    479479
    480 HTML_OUTPUT            = html
     480HTML_OUTPUT            = @srcdir@/html
    481481
    482482# The HTML_HEADER tag can be used to specify a personal HTML header for
     
    569569# put in front of it. If left blank `latex' will be used as the default path.
    570570
    571 LATEX_OUTPUT           = latex
     571LATEX_OUTPUT           = @srcdir@/latex
    572572
    573573# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
Note: See TracChangeset for help on using the changeset viewer.