From: Schantl Stefan Date: Sun, 14 Mar 2010 18:57:41 +0000 (+0100) Subject: naoki: Add new targets. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab4899585469440ccc54c75dd087d2c784caee12;p=ipfire-3.x.git naoki: Add new targets. I added new targets for commands bevore the "./configure" command, to add customflags to the "make build" command and for the "make install" command, to prevent overwriting the whole stage. --- diff --git a/pkgs/Functions b/pkgs/Functions index 9f8b7b146..867de5ad4 100644 --- a/pkgs/Functions +++ b/pkgs/Functions @@ -111,20 +111,25 @@ define STAGE_PREPARE $(STAGE_PREPARE_CMDS2) endef +STAGE_BUILD_TARGETS = + define STAGE_BUILD cd $(DIR_APP) && \ + $(CONFIGURE_ENVIRONMENT) \ ./configure \ $(CONFIGURE_OPTIONS) $(DO_FIX_LIBTOOL) $(STAGE_CONFIGURE_CMDS) - cd $(DIR_APP) && make $(PARALLELISMFLAGS) + cd $(DIR_APP) && make $(STAGE_BUILD_TARGETS) $(PARALLELISMFLAGS) $(STAGE_BUILD_CMDS) endef +STAGE_INSTALL_TARGETS = install + define STAGE_INSTALL - cd $(DIR_APP) && make install $(if $(TOOLCHAIN),,DESTDIR=$(BUILDROOT)) + cd $(DIR_APP) && make $(STAGE_INSTALL_TARGETS) $(if $(TOOLCHAIN),,DESTDIR=$(BUILDROOT)) $(STAGE_INSTALL_CMDS) endef