codegen: Do not create a shadowing *_private_offset variable in GtkModule
[vala-gnome.git] / valadoc / Makefile.am
blob33f3a9375e78010bc44a74d915a7f22b7e83614e
1 include $(top_srcdir)/Makefile.common
3 NULL =
5 SUBDIRS = \
6         doclets \
7         icons \
8         tests \
9         $(NULL)
11 AM_CFLAGS = \
12         -DPACKAGE_DATADIR=\"$(libdir)/valadoc\" \
13         -DPACKAGE_VERSION=\"$(VERSION)\" \
14         -I$(top_srcdir)/libvaladoc/ \
15         -I$(top_srcdir)/gee \
16         -I$(top_srcdir)/ccode \
17         -I$(top_srcdir)/vala \
18         -I$(top_srcdir)/codegen \
19         $(COVERAGE_CFLAGS) \
20         $(GLIB_CFLAGS) \
21         $(GMODULE_CFLAGS) \
22         $(LIBGVC_CFLAGS) \
23         $(NULL)
25 BUILT_SOURCES = valadoc.vala.stamp
27 bin_PROGRAMS = valadoc
29 valadoc_VALASOURCES = \
30         driver.vala \
31         girwriter.vala \
32         initializerbuilder.vala \
33         symbolresolver.vala \
34         treebuilder.vala \
35         valadoc.vala \
36     $(NULL)
38 valadoc_SOURCES = \
39         valadoc.vala.stamp \
40         $(valadoc_VALASOURCES:.vala=.c) \
41         $(NULL)
43 valadoc_LDADD = \
44         $(top_builddir)/libvaladoc/libvaladoc@PACKAGE_SUFFIX@.la \
45         $(top_builddir)/vala/libvala@PACKAGE_SUFFIX@.la \
46         $(top_builddir)/ccode/libvalaccode.la \
47         $(top_builddir)/codegen/libvalaccodegen.la \
48         $(COVERAGE_LIBS) \
49         $(GLIB_LIBS) \
50         $(GMODULE_LIBS) \
51         $(LIBGVC_LIBS) \
52         $(NULL)
54 valadoc.vala.stamp: $(valadoc_VALASOURCES) $(top_srcdir)/vala/libvala@PACKAGE_SUFFIX@.vapi $(top_srcdir)/libvaladoc/valadoc@PACKAGE_SUFFIX@.vapi
55         $(VALA_V)$(VALAC) \
56                 $(COVERAGE_VALAFLAGS) \
57                 $(VALAFLAGS) \
58                 -C \
59                 --vapidir $(top_srcdir)/vala \
60                 --vapidir $(top_srcdir)/vapi \
61                 --pkg gmodule-2.0 \
62                 --pkg gobject-2.0 \
63                 --vapidir $(top_srcdir)/ccode --pkg ccode \
64                 --vapidir $(top_srcdir)/codegen --pkg codegen \
65                 --vapidir $(top_srcdir)/libvaladoc --pkg valadoc@PACKAGE_SUFFIX@ \
66                 --pkg config \
67                 $(filter %.vala %.c,$^)
68         touch $@
70 EXTRA_DIST = \
71         $(valadoc_VALASOURCES) \
72         valadoc.vala.stamp \
73         $(NULL)
75 if ENABLE_UNVERSIONED
76 install-exec-hook:
77         cd $(DESTDIR)$(bindir) && $(LN_S) -f valadoc@PACKAGE_SUFFIX@$(EXEEXT) valadoc$(EXEEXT)
78 endif
80 MAINTAINERCLEANFILES = \
81         $(valadoc_VALASOURCES:.vala=.c) \
82         $(NULL)