gallium/targets: rework the empty targets removal
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 5 Mar 2017 17:17:10 +0000 (17:17 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Mar 2017 16:23:07 +0000 (16:23 +0000)
commit1fe4d638a16ba6f7ad636986dba03042643c1623
treea6a1348d7d4f505ebfa38c5c3691b95493698087
parent2f3f5728f7107176783d594bf6faf3112ded5329
gallium/targets: rework the empty targets removal

Earlier commit added extra tracking and we've attempted to remove the
vdpau/other folder if empty. V2 of said commit dropped the pipe
to /dev/null and the explicit "true" override.

Sadly both of those are needed since there's no guarantee that the
folder will be empty before we [mesa] make install.

Since we're bringing those two back, there's no need to track if we've
installed anything, and simply do "rm -d foo/ &>/dev/null || true"

Tested-by: Andy Furniss <adf.lists@gmail.com>
Reported-by: Andy Furniss <adf.lists@gmail.com>
Fixes: 1cd4fde053 ("gallium/targets: don't leave an empty target directory(ies)")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/targets/dri/Makefile.am
src/gallium/targets/vdpau/Makefile.am
src/gallium/targets/xvmc/Makefile.am