]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Add new targets.
authorSchantl Stefan <Stevee@ipfire.org>
Sun, 14 Mar 2010 18:57:41 +0000 (19:57 +0100)
committerSchantl Stefan <Stevee@ipfire.org>
Sun, 14 Mar 2010 18:57:41 +0000 (19:57 +0100)
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.

pkgs/Functions

index 9f8b7b146d5fe1089113fa404ebebb522ce922e2..867de5ad492258a58db51b3d40af571d5ea9c81b 100644 (file)
@@ -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