source: trunk/lib/Makefile.am @ 540

Last change on this file since 540 was 540, checked in by Peter Johansson, 14 years ago

fixes automatic update of revision and copyright year in --version output. Options --version and --verbose can no be combined to get a slightly more detailed description.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
RevLine 
[84]1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 540 2007-12-29 02:40:23Z peter $
4
[91]5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006 Jari Häkkinen, Peter Johansson
[229]7# Copyright (C) 2007 Peter Johansson
[2]8#
[519]9# This file is part of svndigest, http://trac.thep.lu.se/svndigest
[84]10#
[149]11# svndigest is free software; you can redistribute it and/or modify it
[84]12# under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
[149]16# svndigest is distributed in the hope that it will be useful, but
[84]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 this program; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24# 02111-1307, USA.
[7]25
[167]26noinst_LTLIBRARIES = libsvndigest.la
[81]27
[531]28noinst_HEADERS = Alias.h BlameStats.h ClassicStats.h ColumnStream.h \
[487]29  Commitment.h Configuration.h css.h\
[465]30  Date.h Directory.h File.h first_page.h Functor.h Gnuplot.h GnuplotFE.h \
[448]31  HtmlStream.h html_utility.h LogIterator.h Node.h Parser.h rmdirhier.h \
[532]32  Stats.h StatsCollection.h SVN.h SVNblame.h  \
[286]33  SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h
[81]34
[531]35libsvndigest_la_SOURCES = Alias.cc BlameStats.cc \
36  ClassicStats.cc ColumnStream.cc \
[303]37  Commitment.cc Configuration.cc \
[285]38  css.cc Date.cc Directory.cc File.cc first_page.cc\
[465]39  Functor.cc Gnuplot.cc GnuplotFE.cc  HtmlStream.cc \
[448]40  html_utility.cc LogIterator.cc Node.cc Parser.cc \
[532]41  rmdirhier.cc Stats.cc StatsCollection.cc SVN.cc       \
[286]42  SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc
[91]43
[540]44BUILT_SOURCES=subversion_info.h
45
46EXTRA_DIST=subversion_info.h
47
[139]48clean-local:
[540]49  rm -rf *~ subversion_info.h
50
51all-local:
52
53if HAVE_SVN_WC
54subversion_info.h: subversion_info.h.tmp
55  @if [ ! -f $@ ]; then touch $@; fi; \
56  diff $@ subversion_info.h.tmp > subversion_info.h.diff; \
57  if test -s "subversion_info.h.diff"; then \
58    mv subversion_info.h.tmp subversion_info.h; \
59    $(ECHO) creating subversion_info.h; \
60  fi; \
61  rm -f subversion_info.h.tmp subversion_info.h.diff ;
62
63
64subversion_info.h.tmp: FORCE
65  @$(ECHO) '// svn_version.h generated from svn_version.h.in.' > $@ ;\
66  revision=`$(SVNVERSION) $(top_srcdir)` ;\
67  year=`svn info $(top_srcdir)| sed -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
68  echo $$year; \
69  $(SED) -e 's/sub_2_svn_revision/'$$revision'/g' \
70  -e 's/sub_2_svn_year/'$$year'/g'  subversion_info.h.in >> $@ ;
71endif
72
73FORCE:
Note: See TracBrowser for help on using the repository browser.