forked from micolous/banshee-hyena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
54 lines (47 loc) · 1.15 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
SUBDIRS = \
build \
Hyena \
Hyena.Data.Sqlite \
Hyena.Gui
clean-local:
rm -rf $(top_builddir)/bin
if ENABLE_TESTS
TEST_ASSEMBLIES = \
Hyena.dll \
Hyena.Data.Sqlite.dll \
Hyena.Gui.dll
ENV_OPTIONS = TZ=America/Chicago LC_ALL=it_IT LANG=it_IT
NUNIT_CONSOLE = $$(echo $$(which nunit-console2 || which nunit-console))
RUNNER = for asm in $${TEST_ASSEMBLIES}; do echo -e "\033[1mRunning tests on $${asm}...\033[0m"; $(ENV_OPTIONS) $(NUNIT_CONSOLE) -nologo -noshadow $$asm; done
test:
@pushd bin &>/dev/null; \
export TEST_ASSEMBLIES="$(TEST_ASSEMBLIES)"; $(RUNNER); \
popd &>/dev/null;
else
test:
echo "Tests not enabled. Pass --enable-tests to configure or ./autogen.sh"
endif
hg: all
pushd bin; \
echo "class Entry { static void Main () { Hyena.Gui.TestModuleRunner.Run (); } }" > tester.cs; \
$(MCS) -r:Hyena.Gui.dll tester.cs; \
mono --debug tester.exe; \
rm tester.*; \
popd;
MAINTAINERCLEANFILES = \
compile \
INSTALL \
config.h.in \
aclocal.m4 \
ltmain.sh \
Makefile.in \
depcomp \
missing \
install-sh \
configure \
config.sub \
config.guess \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
mkinstalldirs