[totem-pl-parser] build: fix a race



commit 39e8e3d5e4f83a290415a5596b88f4739e3fb18d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Nov 23 19:59:30 2013 -0600

    build: fix a race
    
    totem-pl-parser-builtins.h was not generated before compiling its dependencies
    
    https://bugzilla.gnome.org/show_bug.cgi?id=715093

 plparse/Makefile.am |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plparse/Makefile.am b/plparse/Makefile.am
index f9660b9..ba50765 100644
--- a/plparse/Makefile.am
+++ b/plparse/Makefile.am
@@ -4,7 +4,10 @@ DIST_SUBDIRS = tests
 lib_LTLIBRARIES = libtotem-plparser.la libtotem-plparser-mini.la
 
 MARSHALFILES = totemplparser-marshal.c totemplparser-marshal.h
-BUILT_SOURCES = $(MARSHALFILES)
+
+BUILT_SOURCES = $(MARSHALFILES) \
+               totem-pl-parser-builtins.c
+               totem-pl-parser-builtins.h
 
 totemplparser-marshal.c: totemplparser-marshal.list
         $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_totemplparser_marshal --header --body --internal $< > $@
@@ -168,10 +171,7 @@ totem-pl-parser-builtins.c: totem-pl-parser.h totem-pl-parser-builtins.h
                        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_ type@_register_static 
(\"@EnumName \", values);\n  }\n  return etype;\n}\n" $^ > xgen-$(@F) \
                && mv -f xgen-$(@F) $@)
 
-CLEANFILES = \
-       totem-pl-parser-builtins.h \
-       totem-pl-parser-builtins.c \
-       $(BUILT_SOURCES)
+CLEANFILES = $(BUILT_SOURCES)
 
 DISTCLEANFILES = $(CLEANFILES)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]