source: trunk/am/doxygen.am @ 2224

Last change on this file since 2224 was 2224, checked in by Peter, 12 years ago

Lift out rule generating doxygen.mk into one common place
'am/doxygen.am'. Modify the YAT_SVN_RELEASE so one can set the name of
outputfile and use that feature to place maintainer.am in new
directory 'am'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1## Include this file in Makefile.ams that contain doxygen input files
2#
3# $Id: doxygen.am 2224 2010-03-22 19:47:09Z peter $
4#
5# Copyright (C) 2010 Peter Johansson
6#
7# This file is part of the yat library, http://dev.thep.lu.se/yat
8#
9# The yat library is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; either version 3 of the
12# License, or (at your option) any later version.
13#
14# The yat library is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with yat. If not, see <http://www.gnu.org/licenses/>.
21
22## How to use this file?  Include this file in Makefile.am and declare
23## $(DOXYGEN_INPUT) to list all files that should be parsed by
24## doxygen.
25
26# stub rule to work around bug in Automake
27$(top_srcdir)/am/doxygen.am:
28
29doxygen.mk: Makefile.am
30  @echo creating $@
31  @echo "# generated by make" > $@ && \
32  var=`echo $(subdir) | $(SED) 's|/|_|g'`_doxygen_input >> $@ && \
33  echo $(ECHO_N) "$$var=$(ECHO_C)" >> $@ && \
34  for f in $(DOXYGEN_INPUT); do \
35    if test -e $(srcdir)/$$f; then \
36      echo $(ECHO_N) "\$$(top_srcdir)/$(subdir)/$$f $(ECHO_C)" >> $@ ; \
37    else \
38      echo $(ECHO_N) "\$$(top_builddir)/$(subdir)/$$f $(ECHO_C)" >> $@ ; \
39    fi \
40  done && \
41  echo >> $@
Note: See TracBrowser for help on using the repository browser.