795 |
30 Jun 09 |
peter |
## Process this file with automake to produce Makefile.in |
795 |
30 Jun 09 |
peter |
2 |
## |
795 |
30 Jun 09 |
peter |
## $Id$ |
795 |
30 Jun 09 |
peter |
4 |
|
1670 |
05 Jul 23 |
peter |
# Copyright (C) 2009, 2010, 2011, 2012, 2023 Peter Johansson |
795 |
30 Jun 09 |
peter |
6 |
# |
795 |
30 Jun 09 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
795 |
30 Jun 09 |
peter |
8 |
# |
795 |
30 Jun 09 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
795 |
30 Jun 09 |
peter |
# under the terms of the GNU General Public License as published by |
795 |
30 Jun 09 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
795 |
30 Jun 09 |
peter |
# (at your option) any later version. |
795 |
30 Jun 09 |
peter |
13 |
# |
795 |
30 Jun 09 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
795 |
30 Jun 09 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
795 |
30 Jun 09 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
795 |
30 Jun 09 |
peter |
# General Public License for more details. |
795 |
30 Jun 09 |
peter |
18 |
# |
795 |
30 Jun 09 |
peter |
# You should have received a copy of the GNU General Public License |
795 |
30 Jun 09 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
795 |
30 Jun 09 |
peter |
21 |
|
1498 |
27 Aug 12 |
peter |
22 |
MOVE_IF_CHANGE = $(SHELL) $(abs_top_srcdir)/move-if-change |
795 |
30 Jun 09 |
peter |
23 |
|
1525 |
01 Oct 12 |
peter |
24 |
noinst_LIBRARIES += yat/libyat.a |
795 |
30 Jun 09 |
peter |
25 |
|
1525 |
01 Oct 12 |
peter |
26 |
yat_headers = |
1525 |
01 Oct 12 |
peter |
27 |
yat_headers += yat/ColumnStream.h |
1525 |
01 Oct 12 |
peter |
28 |
yat_headers += yat/CommandLine.h |
1525 |
01 Oct 12 |
peter |
29 |
yat_headers += yat/deprecate.h |
1525 |
01 Oct 12 |
peter |
30 |
yat_headers += yat/Exception.h |
1525 |
01 Oct 12 |
peter |
31 |
yat_headers += yat/FileUtil.h |
1525 |
01 Oct 12 |
peter |
32 |
yat_headers += yat/Option.h |
1525 |
01 Oct 12 |
peter |
33 |
yat_headers += yat/OptionArg.h |
1525 |
01 Oct 12 |
peter |
34 |
yat_headers += yat/OptionHelp.h |
1525 |
01 Oct 12 |
peter |
35 |
yat_headers += yat/OptionSwitch.h |
1525 |
01 Oct 12 |
peter |
36 |
yat_headers += yat/Segment.h |
1525 |
01 Oct 12 |
peter |
37 |
yat_headers += yat/SegmentSet.h |
1525 |
01 Oct 12 |
peter |
38 |
yat_headers += yat/SegmentTree.h |
1525 |
01 Oct 12 |
peter |
39 |
yat_headers += yat/split.h |
1525 |
01 Oct 12 |
peter |
40 |
yat_headers += yat/stl_utility.h |
1525 |
01 Oct 12 |
peter |
41 |
yat_headers += yat/utility.h |
1525 |
01 Oct 12 |
peter |
42 |
yat_headers += yat/yat_assert.h |
795 |
30 Jun 09 |
peter |
43 |
|
1525 |
01 Oct 12 |
peter |
44 |
noinst_HEADERS += $(yat_headers) |
795 |
30 Jun 09 |
peter |
45 |
|
1423 |
16 Dec 11 |
peter |
46 |
yat_cc_files = |
1525 |
01 Oct 12 |
peter |
47 |
yat_cc_files += yat/ColumnStream.cc |
1525 |
01 Oct 12 |
peter |
48 |
yat_cc_files += yat/CommandLine.cc |
1525 |
01 Oct 12 |
peter |
49 |
yat_cc_files += yat/Exception.cc |
1525 |
01 Oct 12 |
peter |
50 |
yat_cc_files += yat/FileUtil.cc |
1525 |
01 Oct 12 |
peter |
51 |
yat_cc_files += yat/Option.cc |
1525 |
01 Oct 12 |
peter |
52 |
yat_cc_files += yat/OptionHelp.cc |
1525 |
01 Oct 12 |
peter |
53 |
yat_cc_files += yat/OptionSwitch.cc |
1525 |
01 Oct 12 |
peter |
54 |
yat_cc_files += yat/split.cc |
1670 |
05 Jul 23 |
peter |
55 |
yat_cc_files += yat/utility.cc |
1670 |
05 Jul 23 |
peter |
56 |
yat_cc_files += yat/stl_utility.cc |
795 |
30 Jun 09 |
peter |
57 |
|
1670 |
05 Jul 23 |
peter |
58 |
yat_libyat_a_SOURCES = $(yat_cc_files) |
795 |
30 Jun 09 |
peter |
59 |
|
795 |
30 Jun 09 |
peter |
60 |
SVN = svn |
1525 |
01 Oct 12 |
peter |
## FIXME |
1525 |
01 Oct 12 |
peter |
62 |
FETCH_FILES = yat/config_public.h.in $(yat_headers) $(yat_cc_files) |
795 |
30 Jun 09 |
peter |
63 |
|
1525 |
01 Oct 12 |
peter |
64 |
FETCH_DIR = Fetchdir/yat |
1525 |
01 Oct 12 |
peter |
65 |
|
1670 |
05 Jul 23 |
peter |
66 |
yat_url = https://dev.thep.lu.se/yat/svn/trunk/yat/utility |
795 |
30 Jun 09 |
peter |
67 |
|
795 |
30 Jun 09 |
peter |
68 |
fetch: |
1670 |
05 Jul 23 |
peter |
69 |
$(MAKE) $(AM_MAKEFLAGS) fetch-update |
1670 |
05 Jul 23 |
peter |
70 |
$(MAKE) $(AM_MAKEFLAGS) fetch-patch |
1670 |
05 Jul 23 |
peter |
71 |
$(MAKE) $(AM_MAKEFLAGS) fetch-copy |
1670 |
05 Jul 23 |
peter |
72 |
|
1670 |
05 Jul 23 |
peter |
73 |
$(FETCH_DIR): |
1670 |
05 Jul 23 |
peter |
74 |
$(SVN) co $(yat_url) $(FETCH_DIR) |
1670 |
05 Jul 23 |
peter |
75 |
|
1670 |
05 Jul 23 |
peter |
76 |
fetch-update: $(FETCH_DIR) |
1670 |
05 Jul 23 |
peter |
77 |
$(SVN) revert -Rq $(FETCH_DIR) && $(SVN) update $(FETCH_DIR) |
1670 |
05 Jul 23 |
peter |
78 |
|
1670 |
05 Jul 23 |
peter |
# assumes that FETCH_DIR is pristine |
1670 |
05 Jul 23 |
peter |
80 |
fetch-patch: $(FETCH_DIR) |
1670 |
05 Jul 23 |
peter |
81 |
cp $(srcdir)/yat/yat.patch $(FETCH_DIR) |
1670 |
05 Jul 23 |
peter |
82 |
cd $(FETCH_DIR) && $(SVN) patch yat.patch |
1670 |
05 Jul 23 |
peter |
83 |
|
1670 |
05 Jul 23 |
peter |
# For each file in $(FETCH_FILES) copy from $(FETCH_DIR)/yat to yat, |
1670 |
05 Jul 23 |
peter |
# but only if source and target are different |
1670 |
05 Jul 23 |
peter |
86 |
fetch-copy: |
795 |
30 Jun 09 |
peter |
87 |
@for f in $(FETCH_FILES); do \ |
1670 |
05 Jul 23 |
peter |
88 |
$(install_sh_DATA) -C Fetchdir/$$f $(srcdir)/$$f; \ |
795 |
30 Jun 09 |
peter |
89 |
done |