make uclibc++ install into the staging dir again
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jul 2005 16:16:07 +0000 (16:16 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jul 2005 16:16:07 +0000 (16:16 +0000)
SVN-Revision: 1441

openwrt/package/uclibc++/Makefile

index 32587c34be0b4a3ddefc0e367980d7747a79cdd6..9e071c511f4eadbc7aa75ac9794d6b6880525f73 100644 (file)
@@ -12,7 +12,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
 PKG_CAT:=bzcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(TOPDIR)/package/rules.mk
 
@@ -41,8 +40,7 @@ $(PKG_BUILD_DIR)/.configured:
 $(PKG_BUILD_DIR)/.built:
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               all install
+               all
        touch $@
 
 $(IPKG_UCLIBCXX):
@@ -51,3 +49,10 @@ $(IPKG_UCLIBCXX):
        $(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
        mkdir -p $(PACKAGE_DIR)
        $(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
+
+compile: install-dev
+install-dev:
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               $(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
+               DESTDIR="$(STAGING_DIR)" \
+               install