1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 1328 2011-01-27 01:31:05Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson |
---|
6 | # Copyright (C) 2011 Peter Johansson |
---|
7 | # |
---|
8 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
9 | # |
---|
10 | # svndigest is free software; you can redistribute it and/or modify it |
---|
11 | # under the terms of the GNU General Public License as published by |
---|
12 | # the Free Software Foundation; either version 3 of the License, or |
---|
13 | # (at your option) any later version. |
---|
14 | # |
---|
15 | # svndigest is distributed in the hope that it will be useful, but |
---|
16 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | # General Public License for more details. |
---|
19 | # |
---|
20 | # You should have received a copy of the GNU General Public License |
---|
21 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
22 | |
---|
23 | check_SCRIPTS = svn_update.sh init.sh |
---|
24 | |
---|
25 | ## we use suffix .cc for all source |
---|
26 | AM_DEFAULT_SOURCE_EXT = .cc |
---|
27 | |
---|
28 | EXTRA_PROGRAMS = cache_partial.test color.test \ |
---|
29 | config.test copyright.test date.test \ |
---|
30 | graph.test htmlstream.test \ |
---|
31 | parser.test option.test stats.test svn_diff.test trac.test utility.test \ |
---|
32 | vector.test |
---|
33 | |
---|
34 | CLEANFILES = $(EXTRA_PROGRAMS) |
---|
35 | |
---|
36 | option_test_SOURCES = option.cc $(top_srcdir)/bin/Parameter.cc \ |
---|
37 | $(top_srcdir)/bin/AbstractParameter.cc $(top_srcdir)/bin/svndigestParameter.cc |
---|
38 | |
---|
39 | distributed_TESTS = |
---|
40 | distributed_TESTS += cmd_format_test.sh |
---|
41 | distributed_TESTS += config2_test.sh |
---|
42 | distributed_TESTS += config3_test.sh |
---|
43 | distributed_TESTS += copyright2_test.sh |
---|
44 | distributed_TESTS += error_test.sh |
---|
45 | distributed_TESTS += link_root_test.sh |
---|
46 | distributed_TESTS += repo_status_test.sh |
---|
47 | distributed_TESTS += repo_test.sh |
---|
48 | distributed_TESTS += svncopyright_test.sh |
---|
49 | distributed_TESTS += svndigest_copy_cache_test.sh |
---|
50 | |
---|
51 | TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS) |
---|
52 | |
---|
53 | TEST_EXTENSIONS = .sh .test |
---|
54 | |
---|
55 | EXTRA_DIST = $(distributed_TESTS) |
---|
56 | |
---|
57 | # tests not yet passing are listed here |
---|
58 | XFAIL_TESTS = |
---|
59 | |
---|
60 | noinst_HEADERS = Suite.h |
---|
61 | |
---|
62 | check_LIBRARIES = libsvndigesttest.a |
---|
63 | |
---|
64 | LDADD = $(builddir)/libsvndigesttest.a \ |
---|
65 | $(top_builddir)/lib/libsvndigest_core.a \ |
---|
66 | $(top_builddir)/yat/libyat.a \ |
---|
67 | $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS) |
---|
68 | |
---|
69 | ## graph test needs to link against Graph class |
---|
70 | graph_test_LDADD = $(LDADD) $(top_builddir)/lib/libsvndigest.a |
---|
71 | |
---|
72 | AM_LDFLAGS = $(SVNDIGEST_LDFLAGS) |
---|
73 | |
---|
74 | AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS) |
---|
75 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
76 | |
---|
77 | libsvndigesttest_a_SOURCES = Suite.cc |
---|
78 | |
---|
79 | clean-local: |
---|
80 | rm -rf generated_output toy_project testSubDir |
---|
81 | |
---|
82 | mostlyclean-local: |
---|
83 | rm -f *.png *.tmp *~ |
---|
84 | |
---|
85 | .PHONY: lazycheck |
---|
86 | |
---|
87 | lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS= |
---|
88 | |
---|
89 | if HAVE_SVN_WC |
---|
90 | repo_stamp = $(srcdir)/repo/db/current |
---|
91 | else |
---|
92 | repo_stamp = |
---|
93 | endif |
---|
94 | |
---|
95 | # dependencies for lazycheck |
---|
96 | cmd_format_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
97 | config2_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
98 | config3_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) |
---|
99 | copyright2_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) $(repo_stamp) |
---|
100 | link_root_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
101 | repo_status_test.log:init.sh |
---|
102 | repo_test.log:init.sh $(top_builddir)/bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
103 | svncopyright_test.log:init.sh $(top_builddir)/bin/svncopyright$(EXEEXT) |
---|
104 | svndigest_copy_cache_test.log:init.sh $(top_builddir)/bin/svndigest-copy-cache $(repo_stamp) |
---|
105 | |
---|
106 | cache_partial.log: $(repo_stamp) |
---|
107 | copyright.log: $(repo_stamp) |
---|
108 | stats.log: $(repo_stamp) |
---|
109 | |
---|