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.
$(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