Use automake 1.11 vala support + cleaning of the Makefile.am:
[platform/upstream/libgee.git] / tests / Makefile.am
index b4bfffd..f517efb 100644 (file)
@@ -1,20 +1,10 @@
 include $(top_srcdir)/Makefile.decl
 
-NULL =
-
-AM_CPPFLAGS = \
-       -I$(top_srcdir)/gee \
-       $(GLIB_CFLAGS) \
-       $(NULL)
-
 noinst_PROGRAMS = $(TEST_PROGS)
 
-progs_ldadd = $(GLIB_LIBS) ../gee/libgee.la
-
-BUILT_SOURCES = tests.vala.stamp
-
 TEST_PROGS += tests
-tests_VALASOURCES = \
+
+tests_SOURCES = \
        testarraylist.vala \
        testcase.vala \
        testcollection.vala \
@@ -45,14 +35,24 @@ tests_VALASOURCES = \
        testtreeset.vala \
        $(NULL)
 
-tests_DEPENDENCIES = $(top_srcdir)/gee/gee-1.0.vapi
+tests_DEPENDENCIES = \
+       $(top_srcdir)/gee/gee-1.0.vapi \
+       $(NULL)
+
+tests_VALAFLAGS = \
+       --basedir $(top_srcdir) \
+       --vapidir $(top_srcdir)/gee \
+       --pkg gee-1.0 --pkg posix \
+       $(NULL)
 
-tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
-tests.vala.stamp: $(tests_VALASOURCES)
-       $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-1.0 --pkg posix $^
-       touch $@
-tests_LDADD = $(progs_ldadd)
-EXTRA_DIST += $(tests_VALASOURCES)
+tests_CPPFLAGS = \
+       -I$(top_srcdir)/gee \
+       $(GLIB_CFLAGS) \
+       $(NULL)
+
+tests_LDADD = \
+       $(GLIB_LIBS) ../gee/libgee.la \
+       $(NULL)
 
 coverage-reset:
        lcov --base-directory=@top_srcdir@ --directory @top_srcdir@/gee --zerocounters
@@ -76,11 +76,6 @@ coverage-report:
        @echo 'file://@abs_top_builddir@/tests/coverage/index.html'
        @echo
 
-MAINTAINERCLEANFILES = \
-       $(tests_VALASOURCES:.vala=.c) \
-       tests.vala.stamp \
-       $(NULL)
-
 clean-local:
        -rm -rf coverage