targets/dri: Remove unnecessary variables in install-data-hook.
authorMatt Turner <mattst88@gmail.com>
Sun, 7 Dec 2014 08:00:27 +0000 (00:00 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Dec 2014 20:11:49 +0000 (12:11 -0800)
src/gallium/targets/dri/Makefile.am

index c2eea275e6002f28cd01d3b74c8f84e7de9844c2..009153594a9798c0ae40a9eb9ac91bdefcfe5ebc 100644 (file)
@@ -118,21 +118,16 @@ all-local: $(dri_LTLIBRARIES)
        $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium;         \
        $(MKDIR_P) $${link_dir};                                        \
        for i in $(TARGET_DRIVERS); do                                  \
-               j=gallium_dri.so;                                       \
-               k=$${i}_dri.so;                                         \
-               ln -f .libs/$${j}                                       \
-                       $${link_dir}/$${k};                             \
+               ln -f .libs/gallium_dri.so                              \
+                       $${link_dir}/$${i}_dri.so;                      \
        done
 endif
 
 # hardlink each megadriver instance, but don't actually have
 # gallium_dri.so in the set of final installed files.
 install-data-hook:
-       $(AM_V_GEN)dest_dir=$(DESTDIR)/$(dridir);                       \
        for i in $(TARGET_DRIVERS); do                                  \
-               j=gallium_dri.so;                                       \
-               k=$${i}_dri.so;                                         \
-               ln -f $${dest_dir}/$${j}                                \
-                       $${dest_dir}/$${k};                             \
+               ln -f $(DESTDIR)$(dridir)/gallium_dri.so                \
+                     $(DESTDIR)$(dridir)/$${i}_dri.so;                 \
        done;                                                           \
-       $(RM) -f $$dest_dir/gallium_dri.*
+       $(RM) -f $(DESTDIR)$(dridir)/gallium_dri.*