diff options
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/dri/Makefile.am | 3 | ||||
-rw-r--r-- | src/gallium/targets/vdpau/Makefile.am | 3 | ||||
-rw-r--r-- | src/gallium/targets/xvmc/Makefile.am | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index 4d92f45e421..459459ebed2 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -139,12 +139,11 @@ endif # gallium_dri.so in the set of final installed files. install-data-hook: for i in $(TARGET_DRIVERS); do \ - has_drivers=1; \ ln -f $(DESTDIR)$(dridir)/gallium_dri.so \ $(DESTDIR)$(dridir)/$${i}_dri.so; \ done; \ $(RM) $(DESTDIR)$(dridir)/gallium_dri.*; \ - test $${has_drivers} -eq 1 || $(RM) -d $(DESTDIR)$(dridir) + $(RM) -d $(DESTDIR)$(dridir) &>/dev/null || true uninstall-hook: for i in $(TARGET_DRIVERS); do \ diff --git a/src/gallium/targets/vdpau/Makefile.am b/src/gallium/targets/vdpau/Makefile.am index a0f310bc596..cd7ef982aac 100644 --- a/src/gallium/targets/vdpau/Makefile.am +++ b/src/gallium/targets/vdpau/Makefile.am @@ -108,7 +108,6 @@ endif install-data-hook: $(AM_V_GEN)dest_dir=$(DESTDIR)/$(vdpaudir); \ for i in $(TARGET_DRIVERS); do \ - has_drivers=1; \ j=libvdpau_gallium.$(LIB_EXT); \ k=libvdpau_$${i}.$(LIB_EXT); \ l=$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0; \ @@ -122,7 +121,7 @@ install-data-hook: $${dest_dir}/$${k}; \ done; \ $(RM) $${dest_dir}/libvdpau_gallium.*; \ - test $${has_drivers} -eq 1 || $(RM) -d $${dest_dir} + $(RM) -d $${dest_dir} &>/dev/null || true uninstall-hook: for i in $(TARGET_DRIVERS); do \ diff --git a/src/gallium/targets/xvmc/Makefile.am b/src/gallium/targets/xvmc/Makefile.am index b65a191eab0..e29dd6a5cad 100644 --- a/src/gallium/targets/xvmc/Makefile.am +++ b/src/gallium/targets/xvmc/Makefile.am @@ -70,7 +70,6 @@ endif install-data-hook: $(AM_V_GEN)dest_dir=$(DESTDIR)/$(xvmcdir); \ for i in $(TARGET_DRIVERS); do \ - has_drivers=1; \ j=libXvMCgallium.$(LIB_EXT); \ k=libXvMC$${i}.$(LIB_EXT); \ l=$${k}.$(XVMC_MAJOR).$(XVMC_MINOR).0; \ @@ -84,7 +83,7 @@ install-data-hook: $${dest_dir}/$${k}; \ done; \ $(RM) $${dest_dir}/libXvMCgallium.*; \ - test $${has_drivers} -eq 1 || $(RM) -d $${dest_dir} + $(RM) -d $${dest_dir} &>/dev/null || true uninstall-hook: for i in $(TARGET_DRIVERS); do \ |