codegen: Don't try to infer error argument on async begin methods
[vala-gnome.git] / Makefile.am
blobeb4f1ad569abb3ec6f3e2306437967e3793e9951
1 ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}
3 NULL =
5 SUBDIRS = \
6         gee \
7         ccode \
8         vala \
9         codegen \
10         compiler \
11         vapi \
12         tests \
13         doc \
14         gobject-introspection \
15         vapigen \
16         $(NULL)
18 if ENABLE_UNVERSIONED
19 aclocaldir = $(datadir)/aclocal
20 aclocal_DATA = vala.m4
21 endif
23 pkgconfigdir = $(libdir)/pkgconfig
24 pkgconfig_DATA = libvala@PACKAGE_SUFFIX@.pc
26 libvala@PACKAGE_SUFFIX@.pc: libvala.pc
27         cp $< $@
29 .PHONY: bootstrap
30 bootstrap: all
31         find $(top_srcdir) -name "*.vala.stamp" | xargs rm -f
32         $(MAKE) $(AM_MAKEFLAGS) all VALAC=$(abs_top_builddir)/compiler/valac$(EXEEXT) V=$V
34 .PHONY: test
35 test:
36         cd tests && $(MAKE) $(AM_MAKEFLAGS) check
38 #if ENABLE_COVERAGE
39 .PHONY: coverage coverage-report
40 coverage:
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
51 #endif
53 all: version.h
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
60         @true
61 .PHONY: gen-version
62 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          \
65           true;                                                                                         \
66         else                                                                                            \
67           echo "$$V" > $(top_srcdir)/.version;                                                          \
68         fi
69 dist-hook: gen-ChangeLog
70         echo $(VERSION) > $(distdir)/.tarball-version
72 gen_start_date = 2009-02-25
73 .PHONY: gen-ChangeLog
74 gen-ChangeLog:
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;                      \
80         fi
82 CLEANFILES = \
83         libvala@PACKAGE_SUFFIX@.pc \
84         $(NULL)
86 EXTRA_DIST = \
87         ChangeLog.pre-0-4 \
88         ChangeLog.pre-0-5-7 \
89         libvala.pc.in \
90         vala.m4 \
91         .version \
92         build-aux/git-version-gen \
93         build-aux/gitlog-to-changelog \
94         $(NULL)
96 DISTCLEANFILES = version.h