Changeset 795 for trunk/lib/Makefile.am


Ignore:
Timestamp:
Jun 30, 2009, 5:57:27 AM (12 years ago)
Author:
Peter Johansson
Message:

refs #388

Create a sub-directory 'lib/yat' in which files from yat are
placed. The files may be updated via 'make fetch', see file README for
more details on how to change which files are updated/copied through
this mechanism.

The reason we do not use subversion's external mechanism is that we
don't want the files to be synchronised with yat automatically. We
want the update to be moderated by some developer.

I chose to fetch files using the svn client rather than wget because
the svn allows us to get an Id string with information from the yat
repository. 'wget' would just download the file as it appears on the
server that is the string is not expanded.

The file 'config_public.h' is created by configure just as in
yat. This implies that automake adds $(top_builddir)/lib/yat to the
include path so unless in a VPATH build $(top_srcdir)/lib/yat is in
the include path. As we have already added $(top_srcdir)/lib to the
include path, and there are both a lib/utility.h and a
lib/yat/utility.h it is not obvious which file is included when having
'include "utility.h"'. For this reason, when being in bin/ and test/
it is needed to include "../lib/utility.h" rather than "utility.h"
when we want to include 'lib/utility.h'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r768 r795  
    2424# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    2525
     26SUBDIRS = yat .
     27
    2628AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS)
    2729AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
     
    2931noinst_LIBRARIES = libsvndigest.a
    3032
    31 noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h ColumnStream.h \
    32   CommandLine.h Commitment.h Configuration.h copyright_year.h css.h\
    33   Date.h Directory.h Exception.h File.h first_page.h Functor.h \
     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 \
    3436  Gnuplot.h GnuplotFE.h \
    3537  HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \
    36   Node.h Option.h OptionArg.h OptionHelp.h OptionSwitch.h \
     38  Node.h
    3739  OptionVersion.h rmdirhier.h \
    3840  Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h  \
     
    4042
    4143libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
    42   ClassicStats.cc ColumnStream.cc \
    43   CommandLine.cc Commitment.cc Configuration.cc copyright_year.cc \
     44  ClassicStats.cc \
     45  Commitment.cc Configuration.cc copyright_year.cc \
    4446  css.cc Date.cc Directory.cc File.cc first_page.cc\
    4547  Functor.cc Gnuplot.cc GnuplotFE.cc  HtmlBuf.cc HtmlStream.cc \
    4648  html_utility.cc LineTypeParser.cc Node.cc \
    47   Option.cc OptionHelp.cc OptionSwitch.cc OptionVersion.cc \
     49  OptionVersion.cc \
    4850  rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \
    4951  SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc
Note: See TracChangeset for help on using the changeset viewer.