GNOME Bugzilla – Bug 712171
gsettings.m4: @GSETTINGS_RULES@: Support srcdir != builddir with nonrecursive make
Last modified: 2013-11-18 19:34:28 UTC
In hotssh I use nonrecursive make. gnome-continuous uses srcdir != builddir by default. @GSETTINGS_RULES@ will then attempt to touch a nonexistent path. This patch fixes that.
Created attachment 259687 [details] [review] gsettings.m4: @GSETTINGS_RULES@: Support srcdir != builddir with nonrecursive make
Comment on attachment 259687 [details] [review] gsettings.m4: @GSETTINGS_RULES@: Support srcdir != builddir with nonrecursive make >+ $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && mkdir -p [$$](dirname [$]@) && touch [$]@ You can use "$(@D)" rather than "$(dirname $@)" (Also, all the stuff with $d looks unnecessary... possibly leftovers from when the rule included a "cd" or something?)
The use of $d appears to come from https://git.gnome.org/browse/glib/commit/?id=b3593693d918f0ae97094f6712d817180b8eea6a But... $< should reference the correct path anyways, right?
right. afaict that commit makes no sense
Attachment 259687 [details] pushed as 3c2d52c - gsettings.m4: @GSETTINGS_RULES@: Support srcdir != builddir with nonrecursive make
(In reply to comment #4) > right. afaict that commit makes no sense Followup in https://bugzilla.gnome.org/show_bug.cgi?id=712630