$(OBJECT): $(objects)
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "toolchain"
+ cd $(DIR_APP) && \
+ ./configure \
+ $(CONFIGURE_ARCH) \
+ --prefix=$(TOOLS_DIR)
+ cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+ cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "base"
cd $(DIR_APP) && \
./configure \
$(CONFIGURE_ARCH) \
--prefix=/usr
cd $(DIR_APP) && make #$(PARALLELISMFLAGS)
cd $(DIR_APP) && make install
+endif
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)
$(OBJECT): $(objects)
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "toolchain"
+ cd $(DIR_APP) && \
+ ./configure \
+ $(CONFIGURE_ARCH) \
+ --prefix=$(TOOLS_DIR)
+ cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+ cd $(DIR_APP) && make install
+endif
+
+
+ifeq "$(STAGE)" "base"
cd $(DIR_APP) && \
./configure \
$(CONFIGURE_ARCH) \
--prefix=/usr
cd $(DIR_APP) && make $(PARALLELISMFLAGS)
cd $(DIR_APP) && make install
+endif
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)