source: branches/0.7-stable/lib/Makefile.am @ 867

Last change on this file since 867 was 867, checked in by Peter Johansson, 12 years ago

adding missing \ Makefile.am

  • 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 867 2009-11-22 04:07:44Z peter $
4
5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009 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
27SUBDIRS = yat .
28
29AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS)
30AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
31
32noinst_LIBRARIES = libsvndigest.a
33
34noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \
35  Commitment.h Configuration.h copyright_year.h css.h\
36  Date.h Directory.h File.h first_page.h Functor.h \
37  Gnuplot.h GnuplotFE.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
44libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
45  ClassicStats.cc \
46  Commitment.cc Configuration.cc copyright_year.cc \
47  css.cc Date.cc Directory.cc File.cc first_page.cc\
48  Functor.cc Gnuplot.cc GnuplotFE.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
57clean-local:
58  rm -rf *~
59
60all-local:
61
62if HAVE_SVN_WC
63$(srcdir)/subversion_info.cc: subversion_info.cc.tmp
64  @$(MOVE_IF_CHANGE) subversion_info.cc.tmp $@
65
66subversion_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# update copyright year automatically (if we build from svn wc)
73$(srcdir)/copyright_year.cc: copyright_year.cc.tmp
74  @$(MOVE_IF_CHANGE) copyright_year.cc.tmp $@
75
76copyright_year.cc.tmp: FORCE
77  @if (echo $(SVN_REVISION) | $(GREP) M); then \
78    $(SED) -e 's/"20[0-9][0-9]"/'\"`date -u "+%Y"`\"'/g' \
79      $(srcdir)/copyright_year.cc > $@ ; \
80  else \
81    cp $(srcdir)/copyright_year.cc $@; \
82  fi
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.