diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2013-07-21 14:14:52 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-07-21 14:14:52 +0800 |
commit | 7ed1dba65e15728dacacf5ef217c7fcf829f748b (patch) | |
tree | 0a84602d601bef0041311a80eb7284bbeb0a5e30 | |
parent | bf09421a21fc78ff32bb319e6e2c8f39d5016649 (diff) | |
download | gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar.gz gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar.bz2 gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar.lz gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar.xz gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.tar.zst gsoc2013-epiphany-7ed1dba65e15728dacacf5ef217c7fcf829f748b.zip |
Use BUILT_SOURCES to fix some build dependencies problem
-rw-r--r-- | autoarchive/Makefile.am | 18 | ||||
-rw-r--r-- | 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 ***/ |