source: trunk/lib/Makefile.am @ 887

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

refs #401

splitting LIBS *FLAGS into prefixes APR_ SVN_ and DEFAULT_
and modified configure end output to use these flags.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 887 2009-11-25 03:20:36Z 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
23MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change
24SVN_REVISION = `$(SVNVERSION) $(top_srcdir)`
25
26SUBDIRS = yat .
27
28AM_CPPFLAGS = $(DEFAULT_CPPFLAGS) $(APR_CPPFLAGS) $(SVN_CPPFLAGS)
29AM_CXXFLAGS = $(DEFAULT_CXXFLAGS)
30
31noinst_LIBRARIES = libsvndigest.a
32
33noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \
34  Commitment.h Configuration.h copyright_year.h css.h\
35  Date.h Directory.h File.h first_page.h Functor.h \
36  Graph.h \
37  HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \
38  Node.h \
39  OptionVersion.h rmdirhier.h \
40  Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h  \
41  SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h
42
43libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
44  ClassicStats.cc \
45  Commitment.cc Configuration.cc copyright_year.cc \
46  css.cc Date.cc Directory.cc File.cc first_page.cc\
47  Functor.cc Graph.cc HtmlBuf.cc HtmlStream.cc \
48  html_utility.cc LineTypeParser.cc Node.cc \
49  OptionVersion.cc \
50  rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \
51  SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc
52
53
54
55
56clean-local:
57  rm -rf *~
58
59all-local:
60
61if HAVE_SVN_WC
62$(srcdir)/subversion_info.cc: subversion_info.cc.tmp
63  @$(MOVE_IF_CHANGE) subversion_info.cc.tmp $@
64
65subversion_info.cc.tmp: FORCE
66  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
67  revision=$(SVN_REVISION);\
68  $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \
69  $(srcdir)/subversion_info.cc.in >> $@ ;
70
71# update copyright year automatically (if we build from svn wc)
72$(srcdir)/copyright_year.cc: copyright_year.cc.tmp
73  @$(MOVE_IF_CHANGE) copyright_year.cc.tmp $@
74
75copyright_year.cc.tmp: FORCE
76  @if (echo $(SVN_REVISION) | $(GREP) M); then \
77    $(SED) -e 's/"20[0-9][0-9]"/'\"`date -u "+%Y"`\"'/g' \
78      $(srcdir)/copyright_year.cc > $@ ; \
79  else \
80    cp $(srcdir)/copyright_year.cc $@; \
81  fi
82
83else
84# this is needed in 'svn export' build
85$(srcdir)/subversion_info.cc:
86  $(SED) -e 's/sub_2_svn_revision//g' \
87  $(srcdir)/subversion_info.cc.in >> $@ ;
88
89endif
90
91FORCE:
Note: See TracBrowser for help on using the repository browser.