Changeset 1256


Ignore:
Timestamp:
Apr 4, 2008, 7:27:36 PM (13 years ago)
Author:
Peter
Message:

Fixes ticket:278. Documentation is installed with Make targets
install-dvi, install-ps, install-pdf, or the usual
install. NOTE: install targets are not depending on their
corresponding file, and therefore it is recommended to issue `make
doc prior make install. The reason for this choice is that make
install` is typically run by root and preferaby root should
not run doxygen and create a lot of files locally (which can only
be removed by root). If a file to be installed does not exist, the
file is omitted.

Files are installed in $(dvidir), $(psdir), $(pdfdir), and
$(htmldir), which can be changed with configure. Default are these
set to $(docdir), which typically is /usr/local/share/doc/yat/.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile.am

    r1255 r1256  
    5252  cd latex && $(MAKE) pdf;
    5353  cp latex/refman.pdf $(PACKAGE).pdf
     54
    5455endif
     56
     57install-data-hook:
     58  @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html
     59
     60install-html-am:
     61  if test -d "html"; then \
     62  test -d $(htmldir)/html || $(MKDIR_P) $(htmldir)/html;\
     63  $(INSTALL_DATA) html/* $(htmldir)/html; \
     64  fi
     65
     66install-dvi-am:
     67  @if test -f "$(PACKAGE).dvi"; then \
     68  test -d $(dvidir) || $(MKDIR_P) $(dvidir);\
     69  $(INSTALL_DATA) $(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi; \
     70  $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi; \
     71  fi
     72
     73install-ps-am:
     74  @if test -f "$(PACKAGE).ps"; then \
     75  test -d $(psdir) || $(MKDIR_P) $(psdir);\
     76  $(INSTALL_DATA) $(PACKAGE).ps $(psdir)/$(PACKAGE).ps; \
     77  $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(psdir)/$(PACKAGE).ps; \
     78  fi
     79
     80install-pdf-am:
     81  @if test -f "$(PACKAGE).pdf"; then \
     82  test -d $(pdfdir) || $(MKDIR_P) $(pdfdir);\
     83  $(INSTALL_DATA) $(PACKAGE).pdf $(pdfdir)/$(PACKAGE).pdf; \
     84  $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf $(pdfdir)/$(PACKAGE).pdf; \
     85  fi
     86
    5587
    5688mostlyclean-local:
Note: See TracChangeset for help on using the changeset viewer.