Changeset 569 for trunk/lib/Makefile.am


Ignore:
Timestamp:
Mar 13, 2008, 10:55:15 PM (13 years ago)
Author:
Peter Johansson
Message:

NOTE: may cause file name clash. Adding file
subversion_info.h'. Previously make' generated this file, and thus
you may experience a file name clash. Please remove subversion_info.h
prior updating.

Moved implementation of subversion_info to source file in order to
avoid re-compilations not needed. Using script move-if-change to
create source file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r564 r569  
    55# Copyright (C) 2005 Jari Häkkinen
    66# Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    7 # Copyright (C) 2007 Peter Johansson
     7# Copyright (C) 2007 2008 Peter Johansson
    88#
    99# This file is part of svndigest, http://trac.thep.lu.se/svndigest
     
    3131  HtmlStream.h html_utility.h LineTypeParser.h \
    3232  LogIterator.h Node.h rmdirhier.h \
    33   Stats.h StatsCollection.h SVN.h SVNblame.h  \
     33  Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h  \
    3434  SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h
    3535
     
    4040  Functor.cc Gnuplot.cc GnuplotFE.cc  HtmlStream.cc \
    4141  html_utility.cc LineTypeParser.cc LogIterator.cc Node.cc \
    42   rmdirhier.cc Stats.cc StatsCollection.cc SVN.cc       \
     42  rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc        \
    4343  SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc
    4444
    45 BUILT_SOURCES=subversion_info.h
    4645
    47 EXTRA_DIST=subversion_info.h
     46
    4847
    4948clean-local:
     
    5352
    5453if HAVE_SVN_WC
    55 subversion_info.h: subversion_info.h.tmp
    56   @if [ ! -f $@ ]; then touch $@; fi; \
    57   diff $@ subversion_info.h.tmp > subversion_info.h.diff; \
    58   if test -s "subversion_info.h.diff"; then \
    59     mv subversion_info.h.tmp subversion_info.h; \
    60     echo creating subversion_info.h; \
    61   fi; \
    62   rm -f subversion_info.h.tmp subversion_info.h.diff ;
     54subversion_info.cc: subversion_info.cc.tmp
     55  @$(SHELL) @top_srcdir@/build_support/move-if-change subversion_info.cc.tmp \
     56  subversion_info.cc
    6357
    64 
    65 subversion_info.h.tmp: FORCE
    66   @echo '// subversion_info.h generated from subversion_info.h.in.' > $@ ;\
     58subversion_info.cc.tmp: FORCE
     59  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
    6760  revision=`$(SVNVERSION) $(top_srcdir)` ;\
    6861  year=`svn info $(top_srcdir)|$(SED) -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
    6962  $(SED) -e 's/sub_2_svn_revision/'$$revision'/g' \
    70   -e 's/sub_2_svn_year/'$$year'/g'  subversion_info.h.in >> $@ ;
     63  -e 's/sub_2_svn_year/'$$year'/g'  subversion_info.cc.in >> $@ ;
    7164endif
    7265
Note: See TracChangeset for help on using the changeset viewer.