source: trunk/bin/ @ 795

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

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'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
[21]1## Process this file with automake to produce
3## $Id: 795 2009-06-30 03:57:27Z peter $
[408]5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006 Jari Häkkinen, Peter Johansson
[768]7# Copyright (C) 2007, 2008 Peter Johansson
[668]8# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
[687]10# This file is part of svndigest,
[148]12# svndigest is free software; you can redistribute it and/or modify it
[84]13# under the terms of the GNU General Public License as published by
[693]14# the Free Software Foundation; either version 3 of the License, or
[84]15# (at your option) any later version.
[148]17# svndigest is distributed in the hope that it will be useful, but
[84]18# WITHOUT ANY WARRANTY; without even the implied warranty of
[84]20# General Public License for more details.
22# You should have received a copy of the GNU General Public License
[693]23# along with svndigest. If not, see <>.
[148]25bin_PROGRAMS = svndigest
[148]27svndigest_SOURCES =
[100]29noinst_HEADERS = Parameter.h
[795]31LDADD = $(top_builddir)/lib/libsvndigest.a \
32  $(top_builddir)/lib/yat/libyat.a $(SVNDIGEST_LIBS)
[696]35AM_CPPFLAGS = -I$(top_srcdir)/lib $(SVNDIGEST_CPPFLAGS)
[139]40  rm -rf *~
Note: See TracBrowser for help on using the repository browser.