[Libosinfo] [PATCH] build: generate files in the correct order

Fabiano Fidêncio fidencio at redhat.com
Thu Sep 5 21:58:21 UTC 2013


We should generate osinfo_enum_types.h before generate osinfo_enum_types.c, avoid this error:
GEN      osinfo_enum_types.c
Can't open ./osinfo_enum_types.h: No such file or directory at /usr/bin/glib-mkenums line 296, <> line 3630.
---
 osinfo/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/osinfo/Makefile.am b/osinfo/Makefile.am
index 7935d9c..4b304f5 100644
--- a/osinfo/Makefile.am
+++ b/osinfo/Makefile.am
@@ -3,8 +3,8 @@ EXTRA_DIST = libosinfo.syms \
 	     osinfo_enum_types.h.template \
 	     osinfo_enum_types.c.template
 
-BUILT_SOURCES = osinfo_enum_types.c \
-		osinfo_enum_types.h
+BUILT_SOURCES = osinfo_enum_types.h \
+		osinfo_enum_types.c
 
 if USE_VERSION_DEFS
 LIBOSINFO_VERSION_FILE = $(builddir)/libosinfo.def
-- 
1.8.3.1




More information about the Libosinfo mailing list