From 7ed1dba65e15728dacacf5ef217c7fcf829f748b Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 21 Jul 2013 14:14:52 +0800 Subject: Use BUILT_SOURCES to fix some build dependencies problem --- autoarchive/Makefile.am | 18 ++++++++++++------ autoarchive/autoar-enum-types.c.template | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/autoarchive/Makefile.am b/autoarchive/Makefile.am index 384656e6f..7bd48d54a 100644 --- a/autoarchive/Makefile.am +++ b/autoarchive/Makefile.am @@ -1,11 +1,13 @@ # vim: set sw=8 ts=8 sts=8 noet: NULL = -noinst_PROGRAMS = -EXTRA_DIST = - +noinst_PROGRAMS = +EXTRA_DIST = \ + autoar-enum-types.h.template \ + autoar-enum-types.c.template \ + $(NULL) noinst_LTLIBRARIES = libautoarchive.la @@ -54,6 +56,10 @@ test_extract_LDADD = \ libautoarchive.la \ $(NULL) -CLEANFILES = $(libautoarchive_generated_sources) -DISTCLEANFILES = $(libautoarchive_generated_sources) -MAINTAINERCLEANFILES = $(libautoarchive_generated_sources) +BUILT_SOURCES = \ + $(libautoarchive_generated_sources) \ + $(NULL) + +CLEANFILES = $(BUILT_SOURCES) +DISTCLEANFILES = $(BUILT_SOURCES) +MAINTAINERCLEANFILES = $(BUILT_SOURCES) diff --git a/autoarchive/autoar-enum-types.c.template b/autoarchive/autoar-enum-types.c.template index eda4fc9f8..96aee6258 100644 --- a/autoarchive/autoar-enum-types.c.template +++ b/autoarchive/autoar-enum-types.c.template @@ -14,7 +14,7 @@ GType @enum_name@_get_type (void) { static GType type = 0; - if (!type) + if (G_UNLIKELY (!type)) { static const G@Type@Value values[] = { /*** END value-header ***/ -- cgit v1.2.3