sablevm-sdk: Fix parallel build
authorMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 11:10:52 +0000 (11:10 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 11:10:52 +0000 (11:10 +0000)
SVN-Revision: 23359

lang/sablevm-sdk/Makefile

index 53497927d784a37ccaa4dc1141fee7de337b2ac0..a18008e897f7623dbf1c9bcc18747ca6cdd6e29d 100644 (file)
@@ -15,6 +15,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/sablevm
 PKG_MD5SUM:=18a7c1a92b0748a206f9767a76a6b3bb
 
+PKG_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/sablevm/Default
@@ -85,11 +87,16 @@ define Build/Configure
 endef
 
 define Build/Compile
+       $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+               EARLY_CONFIGURE= \
+               EXTRA_CONFIGURE= \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               all
        $(MAKE) -C $(PKG_BUILD_DIR) \
                EARLY_CONFIGURE= \
                EXTRA_CONFIGURE= \
                DESTDIR="$(PKG_INSTALL_DIR)" \
-               all install
+               install
        $(CP) ./files/mini.classlist $(PKG_BUILD_DIR)/sablevm-classpath/lib/
        ( cd $(PKG_BUILD_DIR)/sablevm-classpath/lib; \
                fastjar -Mcf mini.jar -@ < mini.classlist; \