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