Makefile.am 1.55 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE).
#
# This file is part of Olena.
#
# Olena is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 2 of the License.
#
# Olena is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Olena.  If not, see <http://www.gnu.org/licenses/>.
#

18
## Process this file through Automake to create Makefile.in.
19
20
21

include $(top_srcdir)/milena/tests/tests.mk

22
23
24
# Regen files.
include $(top_srcdir)/build-aux/regen-recursive.mk
regen-am:
25
26
27
28
29
	cd $(top_srcdir)					\
	&& ./build-aux/build_unit_test.sh 			\
		milena/mln 					\
		milena/tests/unit_test 				\
		milena/tests/unit_test/disabled_tests
30

31
32
33
34
35
36
# FIXME: Change build_unit_test.sh so that the action looks like this:
#
#	$< $@.tmp && mv -f $@.tmp $@ && chmod -w $@
#
# `$(abs_top_srcdir)' is required because of the change of directory
# at the beginning og the action.
37
$(srcdir)/unit-tests.mk: $(top_srcdir)/build-aux/build_unit_test.sh disabled_tests
38
39
40
41
42
	cd $(top_srcdir)					\
	&& ./build-aux/build_unit_test.sh 			\
		milena/mln 					\
		milena/tests/unit_test 				\
		milena/tests/unit_test/disabled_tests
Guillaume Lazzara's avatar
Guillaume Lazzara committed
43

44
45
46
include $(srcdir)/unit-tests.mk

MAINTAINERCLEANFILES = $(srcdir)/mln_*.cc
47
48

TESTS = $(check_PROGRAMS)