source: trunk/am/doxygen.am @ 2633

Last change on this file since 2633 was 2633, checked in by Peter, 9 years ago

prefer using printf over complicated echo constructs; silence rule for stamp file in silent-mode

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1## Include this file in Makefile.ams that contain doxygen input files
2#
3# $Id: doxygen.am 2633 2011-11-09 13:33:50Z 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
29DISTCLEANFILES += dx-stamp
30
31dx-stamp:; $(AM_V_at)date > $@
32
33# dummie doxygen.mk is created during configure; to trigger
34# re-creation of a proper doxygen.mk during make, let's depend on
35# dx-stamp
36doxygen.mk: Makefile.am dx-stamp $(top_srcdir)/am/doxygen.am
37  @echo creating $@
38  @echo "# generated by make" > $@ && \
39  var=`echo $(subdir) | $(SED) 's|/|_|g'`_doxygen_input >> $@ && \
40  printf "$$var=" >> $@ && \
41  for f in $(DOXYGEN_INPUT); do \
42    if test -e $(srcdir)/$$f; then \
43      printf "\$$(top_srcdir)/$(subdir)/$$f " >> $@ ; \
44    else \
45      printf "\$$(top_builddir)/$(subdir)/$$f " >> $@ ; \
46    fi \
47  done && \
48  echo >> $@
Note: See TracBrowser for help on using the repository browser.