1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 1396 2011-07-25 01:42:30Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2009, 2010, 2011 Peter Johansson |
---|
6 | # |
---|
7 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
8 | # |
---|
9 | # svndigest is free software; you can redistribute it and/or modify it |
---|
10 | # under the terms of the GNU General Public License as published by |
---|
11 | # the Free Software Foundation; either version 3 of the License, or |
---|
12 | # (at your option) any later version. |
---|
13 | # |
---|
14 | # svndigest is distributed in the hope that it will be useful, but |
---|
15 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | # General Public License for more details. |
---|
18 | # |
---|
19 | # You should have received a copy of the GNU General Public License |
---|
20 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
21 | |
---|
22 | MOVE_IF_CHANGE = $(SHELL) $(abs_top_srcdir)/build_support/move-if-change |
---|
23 | |
---|
24 | AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS) |
---|
25 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
26 | |
---|
27 | noinst_LIBRARIES = libyat.a |
---|
28 | |
---|
29 | noinst_HEADERS = |
---|
30 | noinst_HEADERS += ColumnStream.h |
---|
31 | noinst_HEADERS += CommandLine.h |
---|
32 | noinst_HEADERS += deprecate.h |
---|
33 | noinst_HEADERS += Exception.h |
---|
34 | noinst_HEADERS += Option.h |
---|
35 | noinst_HEADERS += OptionArg.h |
---|
36 | noinst_HEADERS += OptionHelp.h |
---|
37 | noinst_HEADERS += OptionSwitch.h |
---|
38 | noinst_HEADERS += split.h |
---|
39 | noinst_HEADERS += utility.h |
---|
40 | |
---|
41 | |
---|
42 | yat_cc_files = |
---|
43 | yat_cc_files += ColumnStream.cc |
---|
44 | yat_cc_files += CommandLine.cc |
---|
45 | yat_cc_files += Exception.cc |
---|
46 | yat_cc_files += Option.cc |
---|
47 | yat_cc_files += OptionHelp.cc |
---|
48 | yat_cc_files += OptionSwitch.cc |
---|
49 | yat_cc_files += split.cc |
---|
50 | |
---|
51 | libyat_a_SOURCES = $(yat_cc_files) dummie.cc |
---|
52 | |
---|
53 | clean-local:; rm -rf Fetchdir |
---|
54 | |
---|
55 | SVN = svn |
---|
56 | FETCH_FILES = config_public.h.in $(noinst_HEADERS) $(yat_cc_files) |
---|
57 | |
---|
58 | yat_url = http://dev.thep.lu.se/yat/svn/trunk/yat/utility |
---|
59 | |
---|
60 | fetch: |
---|
61 | test -d Fetchdir || $(SVN) co $(yat_url) Fetchdir |
---|
62 | (cd Fetchdir && $(SVN) revert -Rq . && $(SVN) update) |
---|
63 | cp $(srcdir)/Exception.cc.patch Fetchdir |
---|
64 | (cd Fetchdir && patch -i Exception.cc.patch || exit 1) |
---|
65 | @for f in $(FETCH_FILES); do \ |
---|
66 | $(MOVE_IF_CHANGE) -v Fetchdir/$$f $(srcdir)/$$f; \ |
---|
67 | done |
---|