Sources = $(SRCROOT)/$(Project)
ConfigStamp = $(BuildDirectory)/configure-stamp
-Workaround_3678855 = /BogusHTMLInstallationDir
-
ifndef Install_Prefix
Install_Prefix = $(USRDIR)
endif
endif
ifndef Install_HTML
ifeq "$(UserType)" "Developer"
-Install_HTML = $(Workaround_3678855)
+Install_HTML = $(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)/$(ProjectName)
else
Install_HTML = $(NSDOCUMENTATIONDIR)/$(ToolType)/$(ProjectName)
endif
--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) $(FIND) $(DSTROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
- $(_v) $(FIND) $(SYMROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
+ $(_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)
$(_v)- $(CHOWN) -R $(Install_User):$(Install_Group) $(DSTROOT) $(SYMROOT)
endif
ifdef GnuAfterInstall
$(_v) $(MAKE) $(GnuAfterInstall)
endif
- $(_v) if [ -d "$(DSTROOT)$(Workaround_3678855)" ]; then \
- $(INSTALL_DIRECTORY) "$(DSTROOT)$(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)"; \
- $(MV) "$(DSTROOT)$(Workaround_3678855)" \
- "$(DSTROOT)$(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)/$(ProjectName)"; \
- fi
+ $(_v) $(MAKE) compress_man_pages
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 $@