glib-2.0: Add float.parse/try_parse()
[vala-gnome.git] / vapigen / Makefile.am
blob1e262c1aadff5b3bc30904528faa4bdb7e302b7d
1 include $(top_srcdir)/Makefile.common
3 NULL =
5 SUBDIRS = \
6         vala-gen-introspect \
7         $(NULL)
9 AM_CPPFLAGS = \
10         $(COVERAGE_CFLAGS) \
11         $(GLIB_CFLAGS) \
12         -I$(top_srcdir)/gee \
13         -I$(top_srcdir)/ccode \
14         -I$(top_srcdir)/vala \
15         -I$(top_srcdir)/gobject-introspection \
16         $(NULL)
18 bin_PROGRAMS = \
19         vapigen \
20         $(NULL)
22 noinst_PROGRAMS = \
23         vapicheck \
24         $(NULL)
26 BUILT_SOURCES = vapigen.vala.stamp vapicheck.vala.stamp
28 vapigen_VALASOURCES = \
29         valagidlparser.vala \
30         valavapigen.vala \
31         $(NULL)
33 vapigen_SOURCES = \
34         vapigen.vala.stamp \
35         $(vapigen_VALASOURCES:.vala=.c) \
36         $(NULL)
38 vapicheck_VALASOURCES = \
39         valavapicheck.vala \
40         $(NULL)
42 vapicheck_SOURCES = \
43         vapicheck.vala.stamp \
44         $(vapicheck_VALASOURCES:.vala=.c) \
45         $(NULL)
47 vapigen.vala.stamp: $(vapigen_VALASOURCES)
48         $(VALA_V)$(VALAC) \
49                 $(COVERAGE_VALAFLAGS) \
50                 $(VALAFLAGS) \
51                 -C \
52                 --vapidir $(top_srcdir)/vapi \
53                 --vapidir $(top_srcdir)/gee --pkg gee \
54                 --vapidir $(top_srcdir)/vala --pkg vala \
55                 --vapidir $(top_srcdir)/gobject-introspection --pkg gidl \
56                 --pkg config \
57                 $^
58         @touch $@
60 vapicheck.vala.stamp: $(vapicheck_VALASOURCES)
61         $(VALA_V)$(VALAC) \
62                 $(COVERAGE_VALAFLAGS) \
63                 $(VALAFLAGS) \
64                 -C \
65                 --vapidir $(top_srcdir)/vapi \
66                 --vapidir $(top_srcdir)/gee --pkg gee \
67                 --vapidir $(top_srcdir)/vala --pkg vala \
68                 --vapidir $(top_srcdir)/gobject-introspection --pkg gidl \
69                 --pkg config \
70                 $^
71         @touch $@
73 vapigen_LDADD = \
74         $(COVERAGE_LIBS) \
75         $(GLIB_LIBS) \
76         $(top_builddir)/vala/libvala@PACKAGE_SUFFIX@.la \
77         $(top_builddir)/gobject-introspection/libgidl.la \
78         $(NULL)
80 vapicheck_LDADD = \
81         $(COVERAGE_LIBS) \
82         $(GLIB_LIBS) \
83         $(top_builddir)/vala/libvala@PACKAGE_SUFFIX@.la \
84         $(top_builddir)/gobject-introspection/libgidl.la \
85         $(NULL)
87 if ENABLE_UNVERSIONED
88 makedir = $(datadir)/vala
89 make_DATA = Makefile.vapigen
91 aclocaldir = $(datadir)/aclocal
92 aclocal_DATA = vapigen.m4
93 endif
95 pkgconfigdir = $(libdir)/pkgconfig
96 pkgconfig_DATA = vapigen@PACKAGE_SUFFIX@.pc
98 vapigen@PACKAGE_SUFFIX@.pc: vapigen.pc
99         cp $< $@
101 EXTRA_DIST = \
102         $(vapigen_VALASOURCES) \
103         $(vapicheck_VALASOURCES) \
104         Makefile.vapigen \
105         vapigen.m4 \
106         vapigen.vala.stamp \
107         vapicheck.vala.stamp \
108         $(NULL)
110 CLEANFILES = \
111         vapigen@PACKAGE_SUFFIX@.pc
112         $(NULL)
114 if ENABLE_UNVERSIONED
115 install-exec-hook:
116         cd $(DESTDIR)$(bindir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@$(EXEEXT) vapigen$(EXEEXT)
118 install-data-hook:
119         cd $(DESTDIR)$(pkgconfigdir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@.pc vapigen.pc
120 endif
122 MAINTAINERCLEANFILES = \
123         $(vapigen_VALASOURCES:.vala=.c) \
124         $(vapicheck_VALASOURCES:.vala=.c) \
125         $(NULL)