[libgdata] build: Add enumeration files to BUILT_SOURCES
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] build: Add enumeration files to BUILT_SOURCES
- Date: Mon, 17 Jul 2017 16:16:11 +0000 (UTC)
commit 109d5df8e5a7033e082bfb2aec8763c20788139e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 17 17:13:37 2017 +0100
build: Add enumeration files to BUILT_SOURCES
These files are generated, but since dependencies are a by-product of
compilation, Automake won't be able to generate the dependencies before
the files that include the headers are built.
For more information:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
Makefile.am | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 4453f7b..0e4cf63 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,6 +5,10 @@ ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS =
MAINTAINERCLEANFILES =
+CLEANFILES =
+EXTRA_DIST =
+BUILT_SOURCES =
+
# Marshalling
GDATA_MARSHAL_FILES = \
gdata/gdata-marshal.c \
@@ -15,8 +19,8 @@ gdata/gdata-marshal.h: $(top_srcdir)/gdata/gdata-marshal.list
gdata/gdata-marshal.c: $(top_srcdir)/gdata/gdata-marshal.list gdata/gdata-marshal.h
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=gdata_marshal --header --body $< > $@
-EXTRA_DIST = $(top_srcdir)/gdata/gdata-marshal.list
-CLEANFILES = $(GDATA_MARSHAL_FILES)
+EXTRA_DIST += $(top_srcdir)/gdata/gdata-marshal.list
+CLEANFILES += $(GDATA_MARSHAL_FILES)
# Enums
GDATA_ENUM_FILES = \
@@ -166,6 +170,7 @@ gdata/services/youtube/gdata-youtube-enums.c: $(gdata_youtube_headers) Makefile
&& sed "s/g_data_you_tube/gdata_youtube/" gdata/services/youtube/gdata-youtube-enums.c.tmp >
gdata/services/youtube/gdata-youtube-enums.c \
&& rm -f gdata/services/youtube/gdata-youtube-enums.c.tmp)
+BUILT_SOURCES += $(GDATA_ENUM_FILES)
CLEANFILES += $(GDATA_ENUM_FILES)
# libgdata library
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]