source: trunk/yat/Makefile.am @ 1525

Last change on this file since 1525 was 1525, checked in by Peter Johansson, 9 years ago

replace recursive Makefile with one single Makefile. Keeping multiple Makefile.ams which are included into main Makefile.am.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1525 2012-10-01 06:31:07Z peter $
4
5# Copyright (C) 2009, 2010, 2011, 2012 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
22MOVE_IF_CHANGE = $(SHELL) $(abs_top_srcdir)/move-if-change
23
24noinst_LIBRARIES += yat/libyat.a
25
26yat_headers =
27yat_headers += yat/ColumnStream.h
28yat_headers += yat/CommandLine.h
29yat_headers += yat/deprecate.h
30yat_headers += yat/Exception.h
31yat_headers += yat/FileUtil.h
32yat_headers += yat/Option.h
33yat_headers += yat/OptionArg.h
34yat_headers += yat/OptionHelp.h
35yat_headers += yat/OptionSwitch.h
36yat_headers += yat/Segment.h
37yat_headers += yat/SegmentSet.h
38yat_headers += yat/SegmentTree.h
39yat_headers += yat/split.h
40yat_headers += yat/stl_utility.h
41yat_headers += yat/utility.h
42yat_headers += yat/yat_assert.h
43
44noinst_HEADERS += $(yat_headers)
45
46yat_cc_files =
47yat_cc_files += yat/ColumnStream.cc
48yat_cc_files += yat/CommandLine.cc
49yat_cc_files += yat/Exception.cc
50yat_cc_files += yat/FileUtil.cc
51yat_cc_files += yat/Option.cc
52yat_cc_files += yat/OptionHelp.cc
53yat_cc_files += yat/OptionSwitch.cc
54yat_cc_files += yat/split.cc
55
56yat_libyat_a_SOURCES = $(yat_cc_files) yat/dummie.cc
57
58SVN = svn
59## FIXME
60FETCH_FILES = yat/config_public.h.in $(yat_headers) $(yat_cc_files)
61
62FETCH_DIR = Fetchdir/yat
63
64yat_url = http://dev.thep.lu.se/yat/svn/trunk/yat/utility
65
66fetch:
67  test -d $(FETCH_DIR) || $(SVN) co $(yat_url) $(FETCH_DIR)
68  (cd $(FETCH_DIR) && $(SVN) revert -Rq . && $(SVN) update)
69  cp $(srcdir)/yat/Exception.cc.patch $(FETCH_DIR)
70  (cd $(FETCH_DIR) && patch -i Exception.cc.patch || exit 1)
71  cp $(srcdir)/yat/stl_utility.h.patch $(FETCH_DIR)
72  (cd $(FETCH_DIR) && patch -i stl_utility.h.patch || exit 1)
73  @for f in $(FETCH_FILES); do \
74    $(MOVE_IF_CHANGE) Fetchdir/$$f $(srcdir)/$$f; \
75  done
Note: See TracBrowser for help on using the repository browser.