mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile
authorMatthew Bell <matthew@bells23.org.uk>
Tue, 15 Dec 2009 04:58:19 +0000 (21:58 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 15 Dec 2009 04:58:19 +0000 (21:58 -0700)
src/gallium/winsys/xlib/Makefile

index 3a1945d92c589b7645a1dd12149ff7ae4450aed7..f34609386dda2b3ba96a0cdf64ac08e9143cd723 100644 (file)
@@ -87,11 +87,11 @@ depend: $(XLIB_WINSYS_SOURCES)
 
 
 install: default
-       $(INSTALL) -d $(INSTALL_DIR)/include/GL
-       $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
-       $(INSTALL) -m 644 $(TOP)/include/GL/*.h $(INSTALL_DIR)/include/GL
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/GL
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
+       $(INSTALL) -m 644 $(TOP)/include/GL/*.h $(DESTDIR)$(INSTALL_DIR)/include/GL
        @if [ -e $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) ]; then \
-               $(MINSTALL) $(TOP)/$(LIB_DIR)/libGL* $(INSTALL_DIR)/$(LIB_DIR); \
+               $(MINSTALL) $(TOP)/$(LIB_DIR)/libGL* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR); \
        fi