vapi: Update GIR-based bindings
[vala-gnome.git] / compiler / Makefile.am
blobff8759e25e800b302a0c7a7a343aeae1de305063
1 include $(top_srcdir)/Makefile.common
3 NULL =
5 AM_CPPFLAGS = \
6         $(COVERAGE_CFLAGS) \
7         -I$(top_srcdir)/gee \
8         -I$(top_srcdir)/ccode \
9         -I$(top_srcdir)/vala \
10         -I$(top_srcdir)/codegen \
11         $(GLIB_CFLAGS) \
12         -DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
13         $(NULL)
15 BUILT_SOURCES = valac.vala.stamp
17 bin_PROGRAMS = \
18         valac \
19         $(NULL)
21 valac_VALASOURCES = \
22         valacompiler.vala \
23         $(NULL)
25 valac_SOURCES = \
26         valac.vala.stamp \
27         $(valac_VALASOURCES:.vala=.c) \
28         $(NULL)
30 valac.vala.stamp: $(valac_VALASOURCES)
31         $(VALA_V)$(VALAC) \
32                 $(COVERAGE_VALAFLAGS) \
33                 $(VALAFLAGS) \
34                 -C \
35                 --vapidir $(top_srcdir)/vapi --pkg gobject-2.0 \
36                 --vapidir $(top_srcdir)/gee --pkg gee \
37                 --vapidir $(top_srcdir)/ccode --pkg ccode \
38                 --vapidir $(top_srcdir)/vala --pkg vala \
39                 --vapidir $(top_srcdir)/codegen --pkg codegen \
40                 --pkg config \
41                 $^
42         @touch $@
44 valac_LDADD = \
45         $(COVERAGE_LIBS) \
46         $(GLIB_LIBS) \
47         $(top_builddir)/vala/libvala@PACKAGE_SUFFIX@.la \
48         $(top_builddir)/ccode/libvalaccode.la \
49         $(top_builddir)/codegen/libvalaccodegen.la \
50         $(NULL)
52 EXTRA_DIST = $(valac_VALASOURCES) valac.vala.stamp
54 install-exec-hook:
55         cd $(DESTDIR)$(bindir) && $(LN_S) -f valac@PACKAGE_SUFFIX@$(EXEEXT) vala@PACKAGE_SUFFIX@$(EXEEXT)
56 if ENABLE_UNVERSIONED
57         cd $(DESTDIR)$(bindir) && $(LN_S) -f valac@PACKAGE_SUFFIX@$(EXEEXT) valac$(EXEEXT)
58         cd $(DESTDIR)$(bindir) && $(LN_S) -f vala@PACKAGE_SUFFIX@$(EXEEXT) vala$(EXEEXT)
59 endif
61 MAINTAINERCLEANFILES = \
62         $(valac_VALASOURCES:.vala=.c) \
63         $(NULL)