Merge branch 'mcatanzaro/#2829' into 'main'

Improve depfile generated by glib-compile-resources

Closes #2829

See merge request GNOME/glib!3460
This commit is contained in:
Philip Withnall 2023-06-01 09:36:15 +00:00
commit fbc66b834e

View File

@ -987,11 +987,15 @@ main (int argc, char **argv)
g_hash_table_iter_init (&iter, files);
dep_string = g_string_new (NULL);
escaped = escape_makefile_string (srcfile);
escaped = escape_makefile_string (target);
g_string_printf (dep_string, "%s:", escaped);
g_free (escaped);
/* First rule: foo.xml: resource1 resource2.. */
escaped = escape_makefile_string (srcfile);
g_string_append_printf (dep_string, " %s", escaped);
g_free (escaped);
/* First rule: foo.c: foo.xml resource1 resource2.. */
while (g_hash_table_iter_next (&iter, &key, &data))
{
file_data = data;