1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 687 2008-08-04 19:37:10Z 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 2 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 this program; if not, write to the Free Software |
---|
21 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
22 | # 02111-1307, USA. |
---|
23 | |
---|
24 | check_PROGRAMS = config_test date_test gnuplot_pipe_test \ |
---|
25 | parser_test trac_test utility_test |
---|
26 | |
---|
27 | # these tests are only for developers since we do not distribute test repository |
---|
28 | if HAVE_SVN_WC |
---|
29 | check_PROGRAMS += copyright_test stats_test |
---|
30 | endif |
---|
31 | |
---|
32 | TESTS = $(check_PROGRAMS) |
---|
33 | # these tests are only for developers since we do not distribute test repository |
---|
34 | if HAVE_SVN_WC |
---|
35 | TESTS += test_repo.sh check_repo_status.sh |
---|
36 | endif |
---|
37 | |
---|
38 | # tests not yet passing are listed here |
---|
39 | XFAIL_TESTS = |
---|
40 | |
---|
41 | noinst_HEADERS = Suite.h |
---|
42 | |
---|
43 | check_LIBRARIES = libsvndigesttest.a |
---|
44 | |
---|
45 | |
---|
46 | LDADD = @builddir@/libsvndigesttest.a \ |
---|
47 | @top_builddir@/lib/libsvndigest.a \ |
---|
48 | $(SVNDIGEST_LIBS) |
---|
49 | AM_LDFLAGS = $(SVNDIGEST_LDFLAGS) |
---|
50 | |
---|
51 | AM_CPPFLAGS = -I@top_srcdir@/lib $(SVNDIGEST_CPPFLAGS) |
---|
52 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
53 | |
---|
54 | libsvndigesttest_a_SOURCES = Suite.cc |
---|
55 | |
---|
56 | config_test_SOURCES = config_test.cc |
---|
57 | copyright_test_SOURCES = copyright_test.cc |
---|
58 | date_test_SOURCES = date_test.cc |
---|
59 | gnuplot_pipe_test_SOURCES = gnuplot_pipe_test.cc |
---|
60 | parser_test_SOURCES = parser_test.cc |
---|
61 | stats_test_SOURCES = stats_test.cc |
---|
62 | trac_test_SOURCES = trac_test.cc |
---|
63 | utility_test_SOURCES = utility_test.cc |
---|
64 | |
---|
65 | toy_project = toy_project |
---|
66 | rootdir = $(abs_srcdir)/$(toy_project) |
---|
67 | targetdir = $(abs_builddir)/generated_output |
---|
68 | repodir = $(abs_srcdir)/repo/trunk |
---|
69 | |
---|
70 | |
---|
71 | # some tests need the test repo to be checked out |
---|
72 | stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.a |
---|
73 | copyright_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.a |
---|
74 | |
---|
75 | @top_builddir@/lib/libsvndigest.a: |
---|
76 | @cd @top_builddir@/lib/ && $(MAKE) $(AM_MAKEFLAGS); |
---|
77 | |
---|
78 | $(toy_project): |
---|
79 | echo Checking out test repository && \ |
---|
80 | svn checkout file://$(repodir) $(toy_project); |
---|
81 | |
---|
82 | clean-local: |
---|
83 | rm -rf *.png *.tmp *~ $(targetdir) |
---|
84 | |
---|
85 | .PHONY: @top_builddir@/lib/libsvndigest.a |
---|