app/base/Makefile.am app/core/Makefile.am nicer output of glib-mkenums.

2001-12-30  Sven Neumann  <sven@gimp.org>

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am: nicer output of glib-mkenums.
This commit is contained in:
Sven Neumann 2001-12-30 15:35:27 +00:00 committed by Sven Neumann
parent 8790d46bf4
commit 84909c44e1
4 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2001-12-30 Sven Neumann <sven@gimp.org>
* app/base/Makefile.am
* app/core/Makefile.am
* app/display/Makefile.am: nicer output of glib-mkenums.
2001-12-29 Sven Neumann <sven@gimp.org>
* data/brushes/Makefile.am (brushdata_DATA): added missing brush

View file

@ -71,7 +71,7 @@ $(srcdir)/base-enums.c: $(srcdir)/base-enums.h
$(GLIB_MKENUMS) \
--fhead "#include <glib-object.h>\n#include \"base-enums.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{\n" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
$(srcdir)/base-enums.h > xgen-bec \

View file

@ -174,21 +174,20 @@ CLEANFILES = $(gen_sources)
$(srcdir)/gimpmarshal.h: $(srcdir)/gimpmarshal.list
$(GLIB_GENMARSHAL) --prefix=gimp_marshal $(srcdir)/gimpmarshal.list --header >> xgen-gmh \
&& (cmp -s xgen-gmh $(srcdir)/gimpmarshal.h || cp xgen-gmh $(srcdir)/gimpmarshal.h) \
&& (cmp -s xgen-gmh $(@F) || cp xgen-gmh $(@F)) \
&& rm -f xgen-gmh xgen-gmh~
$(srcdir)/gimpmarshal.c: $(srcdir)/gimpmarshal.h
echo "#include <glib.h>" > xgen-gmc \
&& echo "#include <glib-object.h>" >> xgen-gmc \
&& echo "#include \"gimpmarshal.h\"" >> xgen-gmc \
echo "#include \"gimpmarshal.h\"" >> xgen-gmc \
&& $(GLIB_GENMARSHAL) --prefix=gimp_marshal $(srcdir)/gimpmarshal.list --body >> xgen-gmc \
&& cp xgen-gmc $(srcdir)/gimpmarshal.c \
&& cp xgen-gmc $(@F) \
&& rm -f xgen-gmc xgen-gmc~
$(srcdir)/core-enums.c: $(srcdir)/core-enums.h
$(GLIB_MKENUMS) \
--fhead "#include <glib-object.h>\n#include \"core-enums.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{\n" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
$(srcdir)/core-enums.h > xgen-cec \

View file

@ -64,7 +64,7 @@ $(srcdir)/display-enums.c: $(srcdir)/display-enums.h
$(GLIB_MKENUMS) \
--fhead "#include <glib-object.h>\n#include \"display-enums.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{\n" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
$(srcdir)/display-enums.h > xgen-dec \