st/es: Clean up install target.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 11 Jan 2010 09:44:00 +0000 (17:44 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 12 Jan 2010 03:25:09 +0000 (11:25 +0800)
Use DESTDIR and MINSTALL.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/state_trackers/es/Makefile

index b8ee0c8..095ffbb 100644 (file)
@@ -69,13 +69,13 @@ $(TOP)/$(LIB_DIR)/$(GLES_2_LIB_NAME): $(ES2_OBJECTS) $(ES1_LIBS) $(GALLIUM_AUXIL
                $(GALLIUM_AUXILIARIES) $(SYS_LIBS)
 
 install: default
-       $(INSTALL) -d $(INSTALL_DIR)/include/GLES
-       $(INSTALL) -m 644 $(TOP)/include/GLES/*.h $(INSTALL_DIR)/include/GLES
-       $(INSTALL) -d $(INSTALL_DIR)/include/GLES2
-       $(INSTALL) -m 644 $(TOP)/include/GLES2/*.h $(INSTALL_DIR)/include/GLES2
-       $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
-       $(INSTALL) $(TOP)/$(LIB_DIR)/libGLESv1* $(INSTALL_DIR)/$(LIB_DIR)
-       $(INSTALL) $(TOP)/$(LIB_DIR)/libGLESv2* $(INSTALL_DIR)/$(LIB_DIR)
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/GLES
+       $(INSTALL) -m 644 $(TOP)/include/GLES/*.h $(DESTDIR)$(INSTALL_DIR)/include/GLES
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/GLES2
+       $(INSTALL) -m 644 $(TOP)/include/GLES2/*.h $(DESTDIR)$(INSTALL_DIR)/include/GLES2
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
+       $(MINSTALL) $(TOP)/$(LIB_DIR)/libGLESv1* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
+       $(MINSTALL) $(TOP)/$(LIB_DIR)/libGLESv2* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
 
 clean:
        -rm -f *.o *~