summaryrefslogtreecommitdiff
path: root/valadoc/Makefile.am
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-06-27 12:21:44 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-06-27 12:21:44 +0200
commit93d9fe647be1f2effc0bfeeec903b5e030182f6c (patch)
treed28aab5aa5c0e4a149e40b22246246dd2b2d5957 /valadoc/Makefile.am
parentb4f3f73a01b86fe7f9edde7a3991b493346eea23 (diff)
downloadvala-93d9fe647be1f2effc0bfeeec903b5e030182f6c.tar.gz
Prepare valadoc source-tree for merge
Diffstat (limited to 'valadoc/Makefile.am')
-rw-r--r--valadoc/Makefile.am66
1 files changed, 66 insertions, 0 deletions
diff --git a/valadoc/Makefile.am b/valadoc/Makefile.am
new file mode 100644
index 000000000..038b6e20c
--- /dev/null
+++ b/valadoc/Makefile.am
@@ -0,0 +1,66 @@
+NULL =
+
+DEFAULT_DRIVER = $(shell $(VALAC) --api-version >/dev/null 2>&1; if [ $$? = 0 ]; then $(VALAC) --api-version; else $(VALAC) --version; fi)
+
+AM_CFLAGS = \
+ -DPACKAGE_DATADIR=\"$(libdir)/valadoc\" \
+ -DPACKAGE_VERSION=\"$(VERSION)\" \
+ -DDEFAULT_DRIVER=\"$(DEFAULT_DRIVER)\" \
+ -I $(top_builddir)/src/libvaladoc/ \
+ $(GLIB_CFLAGS) \
+ $(LIBGEE_CFLAGS) \
+ $(GMODULE_CFLAGS) \
+ $(LIBGVC_CFLAGS) \
+ -g \
+ -w \
+ $(NULL)
+
+AM_VALAFLAGS = \
+ $(VALAFLAGS) \
+ --vapidir $(top_srcdir)/src/vapi/ \
+ --vapidir $(top_builddir)/src/libvaladoc/ \
+ --basedir $(srcdir) \
+ --directory $(builddir) \
+ -C \
+ -g \
+ $(NULL)
+
+BUILT_SOURCES = valadoc.vala.stamp
+
+bin_PROGRAMS = valadoc
+
+valadoc_VALASOURCES = \
+ valadoc.vala \
+ $(NULL)
+
+nodist_valadoc_SOURCES = \
+ $(valadoc_VALASOURCES:.vala=.c) \
+ $(NULL)
+
+valadoc_LDADD = \
+ $(top_builddir)/src/libvaladoc/libvaladoc.la \
+ $(GLIB_LIBS) \
+ $(GMODULE_LIBS) \
+ $(LIBGVC_LIBS) \
+ $(LIBGEE_LIBS) \
+ $(NULL)
+
+valadoc.vala.stamp: $(valadoc_VALASOURCES) Makefile
+ $(VALAC) \
+ $(AM_VALAFLAGS) \
+ --pkg config \
+ --pkg gee-0.8 \
+ --pkg gmodule-2.0 \
+ --pkg valadoc-1.0 \
+ $(filter %.vala %.c,$^)
+ touch $@
+
+EXTRA_DIST = \
+ $(valadoc_VALASOURCES) \
+ $(NULL)
+
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(nodist_valadoc_SOURCES) \
+ $(NULL)
+