## Process this file with automake to produce Makefile.in ## ## $Id: Makefile.am 1392 2008-07-28 19:35:30Z peter $ # Copyright (C) 2003 Jari Häkkinen # Copyright (C) 2005 Peter Johansson # Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson # Copyright (C) 2008 Peter Johansson # # This file is part of the yat library, http://dev.thep.lu.se/yat # # The yat library is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # The yat library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. EXTRA_DIST = concepts.doxygen first_page.doxygen namespaces.doxygen \ Statistics.doxygen doc: html dvi ps pdf stamp-doxygen: doxygen.config Makefile @$(MAKE) $(AM_MAKEFLAGS) update-stamp-doxygen update-stamp-doxygen: FORCE @input=`$(SED) -n 's/^[ \t]*INPUT[ \t]*=[ \t]*//p' doxygen.config`;\ pattern=\ `$(SED) -n 's/^[ \t]*FILE_PATTERNS[ \t]*=[ \t]*//p' doxygen.config`;\ if (test -z "$$pattern"); then \ pattern="*.c *.cc *.cxx *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp *.h++ *.idl";\ fi;\ for i in $$input; do \ if (test -d $$i); then \ for p in $$pattern; do \ input2="$$input2 `find $$i -name $$p|xargs`";\ done; \ else \ input2="$$input2 $ii"; \ fi; \ done; \ for i in $$input2; do \ if (test $$i -nt stamp-doxygen); then \ echo timestamp > stamp-doxygen; \ fi; \ done; if HAVE_DOXYGEN # these are supported by automake and *-local will add target to * dvi-local: update-stamp-doxygen $(PACKAGE).dvi ps-local: update-stamp-doxygen $(PACKAGE).ps pdf-local: update-stamp-doxygen $(PACKAGE).pdf html-local: update-stamp-doxygen $(DX_HTML_OUTPUT)/index.html # this is not supported by automake - there is no target latex latex-local: $(DX_LATEX_OUTPUT)/refman.tex $(DX_HTML_OUTPUT)/index.html: Makefile doxygen.config stamp-doxygen @(cat doxygen.config; $(ECHO) GENERATE_HTML = YES) | doxygen -; $(DX_LATEX_OUTPUT)/refman.tex: Makefile doxygen.config stamp-doxygen @(cat doxygen.config; $(ECHO) GENERATE_LATEX = YES) | doxygen -; $(PACKAGE).dvi: $(DX_LATEX_OUTPUT)/refman.tex cd $(DX_LATEX_OUTPUT) && latex refman.tex && latex refman.tex cp $(DX_LATEX_OUTPUT)/refman.dvi $(PACKAGE).dvi $(PACKAGE).ps: $(PACKAGE).dvi cd $(DX_LATEX_OUTPUT) && dvips -q -o refman.ps refman.dvi; cp $(DX_LATEX_OUTPUT)/refman.ps $(PACKAGE).ps $(PACKAGE).pdf: $(DX_LATEX_OUTPUT)/refman.tex cd $(DX_LATEX_OUTPUT) && $(MAKE) pdf; cp $(DX_LATEX_OUTPUT)/refman.pdf $(PACKAGE).pdf endif install-data-hook: @$(MAKE) $(AM_MAKEFLAGS) install-dvi install-ps install-pdf install-html uninstall-hook: rm -rf $(DESTDIR)$(htmldir)/html $(DESTDIR)$(dvidir)/$(PACKAGE).dvi \ $(DESTDIR)$(psdir)/$(PACKAGE).ps $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf install-html-am: @if test -d $(DX_HTML_OUTPUT); then \ test -d $(DESTDIR)$(htmldir)/html || \ $(MKDIR_P) $(DESTDIR)$(htmldir)/html;\ $(INSTALL_DATA) $(DX_HTML_OUTPUT)/* $(DESTDIR)$(htmldir)/html; \ fi install-dvi-am: @if test -f "$(PACKAGE).dvi"; then \ test -d $(DESTDIR)$(dvidir) || $(MKDIR_P) $(DESTDIR)$(dvidir);\ $(INSTALL_DATA) $(PACKAGE).dvi \ $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \ $(ECHO) $(INSTALL_DATA) $(PACKAGE).dvi \ $(DESTDIR)$(dvidir)/$(PACKAGE).dvi; \ fi install-ps-am: @if test -f "$(PACKAGE).ps"; then \ test -d $(DESTDIR)$(psdir) || $(MKDIR_P) $(DESTDIR)$(psdir);\ $(INSTALL_DATA) $(PACKAGE).ps \ $(DESTDIR)$(psdir)/$(PACKAGE).ps; \ $(ECHO) $(INSTALL_DATA) $(PACKAGE).ps $(DESTDIR)$(psdir)/$(PACKAGE).ps;\ fi install-pdf-am: @if test -f "$(PACKAGE).pdf"; then \ test -d $(DESTDIR)$(pdfdir) || $(MKDIR_P) $(DESTDIR)$(pdfdir);\ $(INSTALL_DATA) $(PACKAGE).pdf \ $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \ $(ECHO) $(INSTALL_DATA) $(PACKAGE).pdf \ $(DESTDIR)$(pdfdir)/$(PACKAGE).pdf; \ fi mostlyclean-local: rm -f *~ clean-local: rm -rf $(PACKAGE).dvi $(PACKAGE).ps $(PACKAGE).pdf $(DX_HTML_OUTPUT) \ $(DX_LATEX_OUTPUT) stamp-doxygen FORCE: