1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 738 2008-12-15 23:40:28Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, 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 | check_PROGRAMS = config_test date_test gnuplot_pipe_test \ |
---|
23 | parser_test trac_test utility_test |
---|
24 | |
---|
25 | # these tests are only for developers since we do not distribute test repository |
---|
26 | if HAVE_TEST_REPO |
---|
27 | check_PROGRAMS += copyright_test stats_test |
---|
28 | endif |
---|
29 | |
---|
30 | TESTS = $(check_PROGRAMS) |
---|
31 | # these tests are only for developers since we do not distribute test repository |
---|
32 | if HAVE_TEST_REPO |
---|
33 | TESTS += test_repo.sh |
---|
34 | endif |
---|
35 | TESTS += check_repo_status.sh |
---|
36 | |
---|
37 | # tests not yet passing are listed here |
---|
38 | XFAIL_TESTS = |
---|
39 | |
---|
40 | noinst_HEADERS = Suite.h |
---|
41 | |
---|
42 | check_LIBRARIES = libsvndigesttest.a |
---|
43 | |
---|
44 | |
---|
45 | LDADD = $(builddir)/libsvndigesttest.a \ |
---|
46 | $(top_builddir)/lib/libsvndigest.a \ |
---|
47 | $(SVNDIGEST_LIBS) |
---|
48 | AM_LDFLAGS = $(SVNDIGEST_LDFLAGS) |
---|
49 | |
---|
50 | AM_CPPFLAGS = -I$(top_srcdir)/lib $(SVNDIGEST_CPPFLAGS) |
---|
51 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
52 | |
---|
53 | libsvndigesttest_a_SOURCES = Suite.cc |
---|
54 | |
---|
55 | config_test_SOURCES = config_test.cc |
---|
56 | copyright_test_SOURCES = copyright_test.cc |
---|
57 | date_test_SOURCES = date_test.cc |
---|
58 | gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc |
---|
59 | parser_test_SOURCES = parser_test.cc |
---|
60 | stats_test_SOURCES = stats_test.cc |
---|
61 | trac_test_SOURCES = trac_test.cc |
---|
62 | utility_test_SOURCES = utility_test.cc |
---|
63 | |
---|
64 | toy_project = toy_project |
---|
65 | rootdir = $(abs_srcdir)/$(toy_project) |
---|
66 | targetdir = $(abs_builddir)/generated_output |
---|
67 | |
---|
68 | # some tests need the test repo to be checked out |
---|
69 | stats_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a |
---|
70 | copyright_test_DEPENDENCIES = $(toy_project) $(top_builddir)/lib/libsvndigest.a |
---|
71 | |
---|
72 | $(toy_project): |
---|
73 | echo Checking out test repository && \ |
---|
74 | repo=`cd $(abs_srcdir)/repo && pwd` && \ |
---|
75 | svn checkout file://$$repo/trunk $(toy_project); |
---|
76 | |
---|
77 | clean-local: |
---|
78 | rm -rf *.png *.tmp *~ $(targetdir) |
---|