source: trunk/lib/Makefile.am @ 837

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

modified copyright year calculation; rather than taking from 'svn log'
the year is taken from 'date', but only if the source is modified,
i.e., svnversion output contains an M. This has the change that the
year will be updated as soon as there is a source modification after
new year, and the copyright update will occur in the first commit
rather than the second (this commit should be categorized under
details we should not really care about ;) )

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