mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
commit
fbc66b834e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user