--disable-dependency-tracking \
$(Extra_Configure_Flags)
+ifndef Configure_Products
+Configure_Products = config.h config.log
+endif
+
+# for backwards compatibility; many projects will probably want to override this
+Extra_Make_Flags ?= $(Environment)
+
+Make_Flags = $(Extra_Make_Flags)
+
Install_Flags = prefix="$(RC_Install_Prefix)" \
mandir="$(RC_Install_Man)" \
infodir="$(RC_Install_Info)" \
install:: build
ifneq ($(GnuNoInstall),YES)
@echo "Installing $(Project)..."
- $(_v) umask $(Install_Mask) ; $(MAKE) -C $(BuildDirectory) $(Environment) $(Install_Flags) $(Install_Target)
+ $(_v) umask $(Install_Mask) ; $(MAKE) -C $(BuildDirectory) $(Make_Flags) $(Install_Flags) $(Install_Target)
$(_v) $(FIND) $(DSTROOT) $(Find_Cruft) -depth -exec $(RMDIR) "{}" \;
$(_v) $(FIND) $(SYMROOT) $(Find_Cruft) -depth -exec $(RMDIR) "{}" \;
ifneq ($(GnuNoChown),YES)
build:: configure
ifneq ($(GnuNoBuild),YES)
@echo "Building $(Project)..."
- $(_v) $(MAKE) -C $(BuildDirectory) $(Environment)
+ $(_v) $(MAKE) -C $(BuildDirectory) $(Make_Flags)
endif
configure:: lazy_install_source $(ConfigStamp)
ifneq ($(GnuNoConfigure),YES)
@echo "Configuring $(Project)..."
$(_v) $(MKDIR) $(BuildDirectory)
- $(_v) cd $(BuildDirectory) && $(Environment) $(Configure) $(Configure_Flags)
+# Disable LD_TRACE_FILE during configure
+ $(_v) cd $(BuildDirectory) && $(Environment) $(Extra_Configure_Environment) LD_TRACE_FILE=/dev/null $(Configure) $(Configure_Flags)
+ifneq ($(Configure_Products),)
+ $(_v) - $(CP) $(foreach PRODUCT,$(Configure_Products),$(BuildDirectory)/$(PRODUCT)) $(SYMROOT)
+endif
endif
$(_v) touch $@