source: trunk/yat/statistics/Makefile.am @ 1905

Last change on this file since 1905 was 1905, checked in by Peter, 13 years ago

Revised make dependencies for generating doxygen docs (fixes #438 and #501).

In doxygen.config removed variables INPUT and FILE_PATTERN to avoid us
from editing these values. The variables ignored in the new setup.

doc/Makefile includes a 'doxygen.mk' located in each of the
directories with header files. This is similar to how Maefiles include
files from '.deps/' to get dependencies for source and header
files. The inclusion relies on an undocumented feature in Automake,
but it should likely not be a problem with future versions of Automake
as it has been frequently been mentioned as a solution on the automake
mailing list.

These 'doxygen.mk' are generated during 'make all' in each of these
directories; they are also updated during 'make {doc|html|dvi|ps|pdf}'
in topdir and topdir/yat. This latter is to avoid situations in which
doc/Makefile is corrupted because of missing include.

This implies that obscure things like
make clean && cd doc && make doc
will fail noisily.

One could let doc/Makefile go into yat/subdirs and create the
doxygen.mk files but I don't like that kind of setup.

Another thought might be to have doxygen.mk removed during 'make
distclean' rather than 'make clean'. Thoughts are welcome.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1905 2009-04-17 16:46:43Z peter $
4
5# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
6# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
7#
8# This file is part of the yat library, http://dev.thep.lu.se/yat
9#
10# The yat library is free software; you can redistribute it and/or
11# modify it under the terms of the GNU General Public License as
12# published by the Free Software Foundation; either version 3 of the
13# License, or (at your option) any later version.
14#
15# The c++ library is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18# General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with yat. If not, see <http://www.gnu.org/licenses/>.
22
23noinst_LTLIBRARIES = libstatistics.la
24libstatistics_la_SOURCES = AUC.cc Averager.cc AveragerPair.cc \
25  AveragerWeighted.cc AveragerPairWeighted.cc \
26  Fisher.cc FoldChange.cc Histogram.cc \
27  KolmogorovSmirnov.cc Pearson.cc \
28  PearsonCorrelation.cc Percentiler.cc ROC.cc \
29  SAMScore.cc Score.cc Smoother.cc SNRScore.cc tScore.cc tTest.cc \
30  utility.cc VectorFunction.cc WilcoxonFoldChange.cc
31
32include_statisticsdir = $(includedir)/yat/statistics
33
34include_statistics_HEADERS = AUC.h Average.h Averager.h AveragerPair.h \
35  AveragerWeighted.h AveragerPairWeighted.h \
36  averager_traits.h EuclideanDistance.h Fisher.h \
37  FoldChange.h Histogram.h \
38  KolmogorovSmirnov.h \
39  Pearson.h PearsonCorrelation.h \
40  PearsonDistance.h Percentiler.h ROC.h \
41  SAMScore.h Score.h Smoother.h SNRScore.h tScore.h tTest.h \
42  utility.h VectorFunction.h WilcoxonFoldChange.h
43CLEANFILES = doxygen.mk
44
45all-local: doxygen.mk
46
47doxygen.mk: Makefile.am
48  @echo "# generated by make" > $@ && \
49  echo $(ECHO_N) "statistics_doxygen_input=" >> $@
50  for f in $(include_statistics_HEADERS); do \
51    echo $(ECHO_N) "\$$(top_srcdir)/$(subdir)/$$f " >> $@; \
52  done && \
53  echo >> $@
54
Note: See TracBrowser for help on using the repository browser.