codegen: Drop unnecessary comma expressions when boxing values
[vala-lang.git] / Makefile.am
blob943e23d55191c8793d788d927d586072d1371bf0
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 aclocaldir = $(datadir)/aclocal
37 dist_aclocal_DATA = vala.m4
39 pkgconfigdir = $(libdir)/pkgconfig
40 pkgconfig_DATA = libvala@PACKAGE_SUFFIX@.pc
42 libvala@PACKAGE_SUFFIX@.pc: libvala.pc
43         cp $< $@
45 .PHONY: bootstrap
46 bootstrap: all
47         find $(top_srcdir) -name "*.vala.stamp" | xargs rm -f
48         $(MAKE) $(AM_MAKEFLAGS) all VALAC=$(abs_top_builddir)/compiler/valac V=$V
50 .PHONY: test
51 test:
52         cd tests && $(MAKE) $(AM_MAKEFLAGS) check
54 #if ENABLE_COVERAGE
55 .PHONY: coverage coverage-report
56 coverage:
57         find $(top_srcdir) -name "*.gcda" | xargs rm -f
58         $(MAKE) $(AM_MAKEFLAGS) bootstrap
59         $(MAKE) $(AM_MAKEFLAGS) test
61 coverage-report: coverage
62         lcov --directory $(top_srcdir) --capture --output-file $(top_builddir)/lcov.info
63         lcov --directory $(top_srcdir) --output-file $(top_builddir)/lcov.info --remove $(top_builddir)/lcov.info "*.c" "*.h" "*.vapi"
64         rm -rf $(top_builddir)/coverage
65         $(mkdir_p) $(top_builddir)/coverage
66         genhtml --title "@PACKAGE_STRING@" --output-directory $(top_builddir)/coverage $(top_builddir)/lcov.info
67 #endif
69 all: version.h
71 version.h: $(top_srcdir)/.version
72         echo '#define BUILD_VERSION "'`cat $(top_srcdir)/.version`'"' > $@-t && mv $@-t $@
74 BUILT_SOURCES = $(top_srcdir)/.version
75 $(top_srcdir)/.version: gen-version
76         @true
77 .PHONY: gen-version
78 gen-version:
79         @V=`$(top_srcdir)/build-aux/git-version-gen $(top_srcdir)/.tarball-version` &&                  \
80         if [ -e $(top_srcdir)/.version ] && [ "x`cat $(top_srcdir)/.version`" = "x$$V" ]; then          \
81           true;                                                                                         \
82         else                                                                                            \
83           echo "$$V" > $(top_srcdir)/.version;                                                          \
84         fi
85 dist-hook: gen-ChangeLog
86         echo $(VERSION) > $(distdir)/.tarball-version
88 gen_start_date = 2009-02-25
89 .PHONY: gen-ChangeLog
90 gen-ChangeLog:
91         if test -d .git; then                                           \
92           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
93             --since=$(gen_start_date) > $(distdir)/cl-t;                \
94           rm -f $(distdir)/ChangeLog;                                   \
95           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
96         fi
98 CLEANFILES = \
99         libvala@PACKAGE_SUFFIX@.pc
100         $(NULL)
102 EXTRA_DIST = \
103         ChangeLog.pre-0-4 \
104         ChangeLog.pre-0-5-7 \
105         MAINTAINERS \
106         libvala.pc.in \
107         .version \
108         build-aux/git-version-gen \
109         build-aux/gitlog-to-changelog \
110         $(NULL)
112 DISTCLEANFILES = version.h