On 21 June 2018 at 05:56, Peter Hutterer <peter.hutte...@who-t.net> wrote: > This way we can make them execute the list-quirks from the builddir. > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > --- > If anyone has any good ideas for how to do something similar for C source > file, I'd appreciate it. > Here is the approach used by git (with git-foo as an example)
a) stat `dirname git`../git-core/git-foo b) stat (for each in $PATH)/git-foo c) $(pwd)/git-foo With the first one found, being executed. So when installed a) kicks in (99% of the time), and while in builddir c) does. HTH Emil _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel