source: trunk/lib/Makefile.am @ 1290

Last change on this file since 1290 was 1290, checked in by Peter Johansson, 11 years ago

closes #457. Lifting out plotting functions in Stats into a new class
StatsPlotter?. In same manner lifting out print functions from
Node/Directory/File? into a new hierarchy
NodePrinter/DirectoryPrinter/FilePrinter?. To accomplish these splits
without to much recoding some friendships are introduced. These new
classes are only needed for svndigest (not svncopyright) and are
therefore placed in a library named libsvndigest together with Graph
class and first_page functions. Remaining functionality, shared
between svncopyright and svndigest, are located in libsvndigest_core
and linked into both binaries.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1290 2010-11-12 04:01:35Z peter $
4
5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2010 Peter Johansson
8#
9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
10#
11# svndigest is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# svndigest is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23
24MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change
25SVN_REVISION = `$(SVNVERSION) $(top_srcdir)`
26
27AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
28AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
29
30noinst_LIBRARIES = libsvndigest.a libsvndigest_core.a
31
32noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \
33  Colors.h Commitment.h Configuration.h CopyrightVisitor.h css.h \
34  Date.h Directory.h DirectoryPrinter.h File.h FilePrinter.h \
35  first_page.h Functor.h \
36  Graph.h \
37  HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \
38  main_utility.h Node.h NodeCounter.h NodePrinter.h NodeVisitor.h \
39  OptionVersion.h rmdirhier.h \
40  Stats.h StatsCollection.h subversion_info.h \
41  SvndigestVisitor.h SVN.h SVNblame.h \
42  SVNdiff.h SVNinfo.h SVNlog.h SVNproperty.h TinyStats.h \
43  Trac.h utility.h Vector.h
44
45libsvndigest_a_SOURCES =
46libsvndigest_a_SOURCES += DirectoryPrinter.cc
47libsvndigest_a_SOURCES += FilePrinter.cc
48libsvndigest_a_SOURCES += first_page.cc
49libsvndigest_a_SOURCES += Graph.cc
50libsvndigest_a_SOURCES += NodePrinter.cc
51libsvndigest_a_SOURCES += StatsPlotter.cc
52libsvndigest_a_SOURCES += SvndigestVisitor.cc
53
54libsvndigest_core_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
55  ClassicStats.cc Colors.cc \
56  Commitment.cc Configuration.cc CopyrightVisitor.cc \
57  css.cc Date.cc Directory.cc File.cc \
58  Functor.cc HtmlBuf.cc HtmlStream.cc \
59  html_utility.cc LineTypeParser.cc main_utility.cc Node.cc \
60  NodeCounter.cc OptionVersion.cc \
61  rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \
62  SVNblame.cc SVNdiff.cc SVNinfo.cc \
63  SVNlog.cc SVNproperty.cc TinyStats.cc \
64  Trac.cc utility.cc Vector.cc
65
66
67
68
69clean-local:
70  rm -rf *~
71
72all-local:
73
74if HAVE_SVN_WC
75$(srcdir)/subversion_info.cc: subversion_info.cc.tmp
76  @$(MOVE_IF_CHANGE) subversion_info.cc.tmp $@
77
78subversion_info.cc.tmp: FORCE
79  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
80  revision=$(SVN_REVISION);\
81  $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \
82  $(srcdir)/subversion_info.cc.in >> $@ ;
83
84else
85# this is needed in 'svn export' build
86$(srcdir)/subversion_info.cc:
87  $(SED) -e 's/sub_2_svn_revision//g' \
88  $(srcdir)/subversion_info.cc.in >> $@ ;
89
90endif
91
92FORCE:
Note: See TracBrowser for help on using the repository browser.