[empathy] build: remove -enumtypes rules



commit 2d1cf80cf8ae0412eaf176c557f78f29ab8d4064
Author: FrÃdÃric PÃters <fpeters 0d be>
Date:   Tue Aug 30 12:54:10 2011 +0200

    build: remove -enumtypes rules

 src/Makefile.am |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 16ff649..6be4b9e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -296,23 +296,5 @@ src-marshal.list: $(empathy_SOURCES) $(empathy_call_SOURCES) Makefile.am
 	$(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
 	$(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
 
-# rules for making the glib enum objects
-%-enumtypes.h: %.h Makefile.in
-	$(AM_V_GEN)glib-mkenums \
-	--fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
-	--fprod "/* enumerations from \"@filename \" */\n" \
-	--vhead "GType @enum_name _get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_ ENUMSHORT@ (@enum_name _get_type())\n"         \
-	--ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
-	$< > $@
-
-%-enumtypes.c: %.h Makefile.in
-	$(AM_V_GEN)glib-mkenums \
-	--fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
-	--fprod "\n/* enumerations from \"@filename \" */" \
-	--vhead "GType\n enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G Type@Value values[] = {"     \
-	--vprod "      { @VALUENAME@, \"@VALUENAME \", \"@VALUENAME \" }," \
-	--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_ type@_register_static (\"@EnumName \", values);\n  }\n  return etype;\n}\n" \
-	$< > $@
-
 CLEANFILES = $(BUILT_SOURCES)
 



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