mirror of https://github.com/GNOME/gimp.git
app, libgimp*: updating autotools script in sync with meson.
Generated *enums.c now have an additional stamp no-op header include (see last 2 commits). Sync this change into the autotools generation scripts to prevent back and forth useless generation of these files each time we switch from one build system to another.
This commit is contained in:
parent
979acaaae2
commit
83e465ec16
|
@ -144,7 +144,7 @@ CLEANFILES += $(gen_sources)
|
||||||
|
|
||||||
xgen-cec: $(srcdir)/config-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-cec: $(srcdir)/config-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"config-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-config-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"config-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -154,11 +154,14 @@ xgen-cec: $(srcdir)/config-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-config-enums.h: xgen-cec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/config-enums.c: xgen-cec
|
$(srcdir)/config-enums.c: xgen-cec stamp-config-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -545,7 +545,7 @@ gimpmarshal.c: gimpmarshal.h
|
||||||
|
|
||||||
xgen-cec: $(srcdir)/core-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-cec: $(srcdir)/core-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-core-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -555,11 +555,14 @@ xgen-cec: $(srcdir)/core-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-core-enums.h: xgen-cec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/core-enums.c: xgen-cec
|
$(srcdir)/core-enums.c: xgen-cec stamp-core-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -205,7 +205,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-dec: $(srcdir)/display-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-dec: $(srcdir)/display-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-display-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -215,11 +215,14 @@ xgen-dec: $(srcdir)/display-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-display-enums.h: xgen-dec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/display-enums.c: xgen-dec
|
$(srcdir)/display-enums.c: xgen-dec stamp-display-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -76,7 +76,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-ggec: $(srcdir)/gimp-gegl-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-ggec: $(srcdir)/gimp-gegl-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core/core-enums.h\"\n#include \"gimp-gegl-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-gimp-gegl-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core/core-enums.h\"\n#include \"gimp-gegl-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -86,11 +86,14 @@ xgen-ggec: $(srcdir)/gimp-gegl-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-gimp-gegl-enums.h: xgen-ggec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/gimp-gegl-enums.c: xgen-ggec
|
$(srcdir)/gimp-gegl-enums.c: xgen-ggec stamp-gimp-gegl-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -117,7 +117,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-oec: $(srcdir)/operations-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-oec: $(srcdir)/operations-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"operations-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-operations-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"operations-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -127,11 +127,14 @@ xgen-oec: $(srcdir)/operations-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-operations-enums.h: xgen-oec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/operations-enums.c: xgen-oec
|
$(srcdir)/operations-enums.c: xgen-oec stamp-operations-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -102,7 +102,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-pec: $(srcdir)/paint-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-pec: $(srcdir)/paint-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"paint-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-paint-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"paint-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -112,11 +112,14 @@ xgen-pec: $(srcdir)/paint-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-paint-enums.h: xgen-pec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/paint-enums.c: xgen-pec
|
$(srcdir)/paint-enums.c: xgen-pec stamp-paint-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -80,7 +80,7 @@ CLEANFILES = $(EXTRA_PROGRAMS) $(gen_sources)
|
||||||
|
|
||||||
xgen-pec: $(srcdir)/plug-in-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-pec: $(srcdir)/plug-in-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"plug-in-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-plug-in-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"plug-in-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -90,11 +90,14 @@ xgen-pec: $(srcdir)/plug-in-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-plug-in-enums.h: xgen-pec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/plug-in-enums.c: xgen-pec
|
$(srcdir)/plug-in-enums.c: xgen-pec stamp-plug-in-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -57,7 +57,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-tec: $(srcdir)/text-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-tec: $(srcdir)/text-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"text-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-text-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"text-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -67,11 +67,14 @@ xgen-tec: $(srcdir)/text-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-text-enums.h: xgen-tec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/text-enums.c: xgen-tec
|
$(srcdir)/text-enums.c: xgen-tec stamp-text-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -256,7 +256,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-tec: $(srcdir)/tools-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-tec: $(srcdir)/tools-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core/core-enums.h\"\n#include \"tools-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-tools-enums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core/core-enums.h\"\n#include \"tools-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -266,11 +266,14 @@ xgen-tec: $(srcdir)/tools-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-tools-enums.h: xgen-tec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/tools-enums.c: xgen-tec
|
$(srcdir)/tools-enums.c: xgen-tec stamp-tools-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -490,7 +490,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-wec: $(srcdir)/widgets-enums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-wec: $(srcdir)/widgets-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gtk/gtk.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"widgets-enums.h\"\n#include \"gimp-intl.h\"" \
|
--fhead "#include \"stamp-widgets-enums.h\"\n#include \"config.h\"\n#include <gtk/gtk.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"widgets-enums.h\"\n#include \"gimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -500,11 +500,14 @@ xgen-wec: $(srcdir)/widgets-enums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-widgets-enums.h: xgen-wec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/widgets-enums.c: xgen-wec
|
$(srcdir)/widgets-enums.c: xgen-wec stamp-widgets-enums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -186,7 +186,7 @@ CLEANFILES = $(EXTRA_PROGRAMS) $(gen_sources)
|
||||||
|
|
||||||
xgen-bec: $(srcdir)/gimpbaseenums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-bec: $(srcdir)/gimpbaseenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#undef GIMP_DISABLE_DEPRECATED\n#include \"gimpbasetypes.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
--fhead "#include \"stamp-gimpbaseenums.h\"\n#include \"config.h\"\n#include <glib-object.h>\n#undef GIMP_DISABLE_DEPRECATED\n#include \"gimpbasetypes.h\"\n#include \"libgimp/libgimp-intl.h\"\n#include \"gimpbaseenums.h\"\n" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -196,11 +196,14 @@ xgen-bec: $(srcdir)/gimpbaseenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-gimpbaseenums.h: xgen-bec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/gimpbaseenums.c: xgen-bec
|
$(srcdir)/gimpbaseenums.c: xgen-bec stamp-gimpbaseenums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
@ -210,7 +213,7 @@ $(srcdir)/gimpbaseenums.c: xgen-bec
|
||||||
|
|
||||||
xgen-cec: $(srcdir)/gimpcompatenums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-cec: $(srcdir)/gimpcompatenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpbasetypes.h\"\n#include \"gimpcompatenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
--fhead "#include \"stamp-gimpcompatenums.h\"\n#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpbasetypes.h\"\n#include \"gimpcompatenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -220,11 +223,14 @@ xgen-cec: $(srcdir)/gimpcompatenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-gimpcompatenums.h: xgen-cec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/gimpcompatenums.c: xgen-cec
|
$(srcdir)/gimpcompatenums.c: xgen-cec stamp-gimpcompatenums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -109,7 +109,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-cec: $(srcdir)/gimpconfigenums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-cec: $(srcdir)/gimpconfigenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpconfigenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
--fhead "#include \"stamp-gimpconfigenums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpconfigenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -119,11 +119,14 @@ xgen-cec: $(srcdir)/gimpconfigenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-gimpconfigenums.h: xgen-cec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/gimpconfigenums.c: xgen-cec
|
$(srcdir)/gimpconfigenums.c: xgen-cec stamp-gimpconfigenums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
|
@ -180,7 +180,7 @@ CLEANFILES = $(gen_sources)
|
||||||
|
|
||||||
xgen-wec: $(srcdir)/gimpwidgetsenums.h $(GIMP_MKENUMS) Makefile.am
|
xgen-wec: $(srcdir)/gimpwidgetsenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
||||||
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpwidgetsenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
--fhead "#include \"stamp-gimpwidgetsenums.h\"\n#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpwidgetsenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
||||||
--fprod "\n/* enumerations from \"@basename@\" */" \
|
--fprod "\n/* enumerations from \"@basename@\" */" \
|
||||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
||||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||||
|
@ -190,11 +190,14 @@ xgen-wec: $(srcdir)/gimpwidgetsenums.h $(GIMP_MKENUMS) Makefile.am
|
||||||
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
stamp-gimpwidgetsenums.h: xgen-wec
|
||||||
|
echo "/* Generated on `date`. */" > $@
|
||||||
|
|
||||||
# copy the generated enum file back to the source directory only if it's
|
# copy the generated enum file back to the source directory only if it's
|
||||||
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
# changed; otherwise, only update its timestamp, so that the recipe isn't
|
||||||
# executed again on the next build, however, allow this to (harmlessly) fail,
|
# executed again on the next build, however, allow this to (harmlessly) fail,
|
||||||
# to support building from a read-only source tree.
|
# to support building from a read-only source tree.
|
||||||
$(srcdir)/gimpwidgetsenums.c: xgen-wec
|
$(srcdir)/gimpwidgetsenums.c: xgen-wec stamp-gimpwidgetsenums.h
|
||||||
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
$(AM_V_GEN) if ! cmp -s $< $@; then \
|
||||||
cp $< $@; \
|
cp $< $@; \
|
||||||
else \
|
else \
|
||||||
|
|
Loading…
Reference in New Issue