1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 978 2009-12-12 20:09:41Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2005 Jari Häkkinen |
---|
6 | # Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson |
---|
7 | # |
---|
8 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
9 | # |
---|
10 | # svndigest is free software; you can redistribute it and/or modify it |
---|
11 | # under the terms of the GNU General Public License as published by |
---|
12 | # the Free Software Foundation; either version 3 of the License, or |
---|
13 | # (at your option) any later version. |
---|
14 | # |
---|
15 | # svndigest is distributed in the hope that it will be useful, but |
---|
16 | # 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 svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
22 | |
---|
23 | MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change |
---|
24 | SVN_REVISION = `$(SVNVERSION) $(top_srcdir)` |
---|
25 | |
---|
26 | SUBDIRS = yat . |
---|
27 | |
---|
28 | AM_CPPFLAGS = $(DEFAULT_CPPFLAGS) $(APR_CPPFLAGS) $(SVN_CPPFLAGS) \ |
---|
29 | $(PLPLOT_CPPFLAGS) |
---|
30 | AM_CXXFLAGS = $(DEFAULT_CXXFLAGS) |
---|
31 | |
---|
32 | noinst_LIBRARIES = libsvndigest.a |
---|
33 | |
---|
34 | noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \ |
---|
35 | Colors.h Commitment.h Configuration.h css.h \ |
---|
36 | Date.h Directory.h File.h first_page.h Functor.h \ |
---|
37 | Graph.h \ |
---|
38 | HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \ |
---|
39 | Node.h \ |
---|
40 | OptionVersion.h rmdirhier.h \ |
---|
41 | Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h \ |
---|
42 | SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h |
---|
43 | |
---|
44 | libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \ |
---|
45 | ClassicStats.cc Colors.cc \ |
---|
46 | Commitment.cc Configuration.cc \ |
---|
47 | css.cc Date.cc Directory.cc File.cc first_page.cc\ |
---|
48 | Functor.cc Graph.cc HtmlBuf.cc HtmlStream.cc \ |
---|
49 | html_utility.cc LineTypeParser.cc Node.cc \ |
---|
50 | OptionVersion.cc \ |
---|
51 | rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \ |
---|
52 | SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | clean-local: |
---|
58 | rm -rf *~ |
---|
59 | |
---|
60 | all-local: |
---|
61 | |
---|
62 | if HAVE_SVN_WC |
---|
63 | $(srcdir)/subversion_info.cc: subversion_info.cc.tmp |
---|
64 | @$(MOVE_IF_CHANGE) subversion_info.cc.tmp $@ |
---|
65 | |
---|
66 | subversion_info.cc.tmp: FORCE |
---|
67 | @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\ |
---|
68 | revision=$(SVN_REVISION);\ |
---|
69 | $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \ |
---|
70 | $(srcdir)/subversion_info.cc.in >> $@ ; |
---|
71 | |
---|
72 | else |
---|
73 | # this is needed in 'svn export' build |
---|
74 | $(srcdir)/subversion_info.cc: |
---|
75 | $(SED) -e 's/sub_2_svn_revision//g' \ |
---|
76 | $(srcdir)/subversion_info.cc.in >> $@ ; |
---|
77 | |
---|
78 | endif |
---|
79 | |
---|
80 | FORCE: |
---|