1 ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}
14 gobject-introspection \
19 aclocaldir = $(datadir)/aclocal
20 aclocal_DATA = vala.m4
23 pkgconfigdir = $(libdir)/pkgconfig
24 pkgconfig_DATA = libvala@PACKAGE_SUFFIX@.pc
26 libvala@PACKAGE_SUFFIX@.pc: libvala.pc
31 find $(top_srcdir) -name "*.vala.stamp" | xargs rm -f
32 $(MAKE) $(AM_MAKEFLAGS) all VALAC=$(abs_top_builddir)/compiler/valac$(EXEEXT) V=$V
36 cd tests && $(MAKE) $(AM_MAKEFLAGS) check
39 .PHONY: coverage coverage-report
41 find $(top_srcdir) -name "*.gcda" | xargs rm -f
42 $(MAKE) $(AM_MAKEFLAGS) bootstrap
43 $(MAKE) $(AM_MAKEFLAGS) test
45 coverage-report: coverage
46 lcov --directory $(top_srcdir) --capture --output-file $(top_builddir)/lcov.info
47 lcov --directory $(top_srcdir) --output-file $(top_builddir)/lcov.info --remove $(top_builddir)/lcov.info "*.c" "*.h" "*.vapi"
48 rm -rf $(top_builddir)/coverage
49 $(mkdir_p) $(top_builddir)/coverage
50 genhtml --title "@PACKAGE_STRING@" --output-directory $(top_builddir)/coverage $(top_builddir)/lcov.info
55 version.h: $(top_srcdir)/.version
56 echo '#define BUILD_VERSION "'`cat $(top_srcdir)/.version`'"' > $@-t && mv $@-t $@
58 BUILT_SOURCES = $(top_srcdir)/.version
59 $(top_srcdir)/.version: gen-version
63 @V=`$(top_srcdir)/build-aux/git-version-gen $(top_srcdir)/.tarball-version` && \
64 if [ -e $(top_srcdir)/.version ] && [ "x`cat $(top_srcdir)/.version`" = "x$$V" ]; then \
67 echo "$$V" > $(top_srcdir)/.version; \
69 dist-hook: gen-ChangeLog
70 echo $(VERSION) > $(distdir)/.tarball-version
72 gen_start_date = 2009-02-25
75 if test -d .git; then \
76 $(top_srcdir)/build-aux/gitlog-to-changelog \
77 --since=$(gen_start_date) > $(distdir)/cl-t; \
78 rm -f $(distdir)/ChangeLog; \
79 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
83 libvala@PACKAGE_SUFFIX@.pc \
92 build-aux/git-version-gen \
93 build-aux/gitlog-to-changelog \
96 DISTCLEANFILES = version.h