GAsync: Fix temporary variable initialization in loops
[vala-lang.git] / Makefile.am
blob0dfaa2061d5d1ff0124e63fa848173817f846bcc
1 ACLOCAL_AMFLAGS = -I m4
2 NULL =
4 if ENABLE_VAPIGEN
5 VAPIGEN_SUBDIRS = \
6         gobject-introspection \
7         vapigen \
8         $(NULL)
9 endif
11 SUBDIRS = \
12         gee \
13         ccode \
14         vala \
15         codegen \
16         compiler \
17         vapi \
18         tests \
19         doc \
20         $(VAPIGEN_SUBDIRS) \
21         $(NULL)
23 DIST_SUBDIRS = \
24         gee \
25         ccode \
26         vala \
27         codegen \
28         compiler \
29         vapi \
30         tests \
31         doc \
32         gobject-introspection \
33         vapigen \
34         $(NULL)
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = vala-1.0.pc
39 .PHONY: bootstrap
40 bootstrap: all
41         find $(top_srcdir) -name "*.vala.stamp" | xargs rm -f
42         $(MAKE) $(AM_MAKEFLAGS) all VALAC=$(abs_top_builddir)/compiler/valac
44 .PHONY: test
45 test:
46         cd tests && $(MAKE) $(AM_MAKEFLAGS) check
48 #if ENABLE_COVERAGE
49 .PHONY: coverage coverage-report
50 coverage:
51         find $(top_srcdir) -name "*.gcda" | xargs rm -f
52         $(MAKE) $(AM_MAKEFLAGS) bootstrap
53         $(MAKE) $(AM_MAKEFLAGS) test
55 coverage-report: coverage
56         lcov --directory $(top_srcdir) --capture --output-file $(top_builddir)/lcov.info
57         lcov --directory $(top_srcdir) --output-file $(top_builddir)/lcov.info --remove $(top_builddir)/lcov.info "*.c" "*.h" "*.vapi"
58         rm -r $(top_builddir)/coverage
59         $(mkdir_p) $(top_builddir)/coverage
60         genhtml --title "@PACKAGE_STRING@" --output-directory $(top_builddir)/coverage $(top_builddir)/lcov.info
61 #endif
63 dist-hook: gen-ChangeLog
65 gen_start_date = 2009-02-25
66 .PHONY: gen-ChangeLog
67 gen-ChangeLog:
68         if test -d .git; then                                           \
69           $(top_srcdir)/gitlog-to-changelog                             \
70             --since=$(gen_start_date) > $(distdir)/cl-t;                \
71           rm -f $(distdir)/ChangeLog;                                   \
72           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
73         fi
75 EXTRA_DIST = \
76         ChangeLog.pre-0-4 \
77         ChangeLog.pre-0-5-7 \
78         gitlog-to-changelog \
79         MAINTAINERS \
80         vala-1.0.pc.in \
81         $(NULL)