< prev index next >

make/InitSupport.gmk

Print this page




 314   define PrintConfCheckFailed
 315         @echo ' '
 316         @echo "Please rerun configure! Easiest way to do this is by running"
 317         @echo "'make reconfigure'."
 318         @echo "This behavior may also be changed using CONF_CHECK=<ignore|auto>."
 319         @echo ' '
 320   endef
 321 
 322 else # $(HAS_SPEC)=true
 323   ##############################################################################
 324   # Helper functions for the 'main' target. These functions assume a single,
 325   # proper and existing SPEC is included.
 326   ##############################################################################
 327 
 328   include $(SRC_ROOT)/make/common/MakeBase.gmk
 329 
 330   # Define basic logging setup
 331   BUILD_LOG := $(OUTPUT_ROOT)/build.log
 332   BUILD_TRACE_LOG := $(OUTPUT_ROOT)/build-trace-time.log
 333 
 334   BUILD_LOG_PIPE := > >($(TEE) -a $(BUILD_LOG)) 2> >($(TEE) -a $(BUILD_LOG) >&2)
 335 
 336   # Sanity check the spec file, so it matches this source code
 337   define CheckSpecSanity
 338     ifneq ($$(ACTUAL_TOPDIR), $$(TOPDIR))
 339       ifneq ($$(ACTUAL_TOPDIR), $$(ORIGINAL_TOPDIR))
 340         ifneq ($$(ACTUAL_TOPDIR), $$(CANONICAL_TOPDIR))
 341           $$(info Error: SPEC mismatch! Current working directory)
 342           $$(info $$(ACTUAL_TOPDIR))
 343           $$(info does not match either TOPDIR, ORIGINAL_TOPDIR or CANONICAL_TOPDIR)
 344           $$(info $$(TOPDIR))
 345           $$(info $$(ORIGINAL_TOPDIR))
 346           $$(info $$(CANONICAL_TOPDIR))
 347           $$(error Cannot continue)
 348         endif
 349       endif
 350     endif
 351   endef
 352 
 353   # Parse COMPARE_BUILD into COMPARE_BUILD_*
 354   # Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:




 314   define PrintConfCheckFailed
 315         @echo ' '
 316         @echo "Please rerun configure! Easiest way to do this is by running"
 317         @echo "'make reconfigure'."
 318         @echo "This behavior may also be changed using CONF_CHECK=<ignore|auto>."
 319         @echo ' '
 320   endef
 321 
 322 else # $(HAS_SPEC)=true
 323   ##############################################################################
 324   # Helper functions for the 'main' target. These functions assume a single,
 325   # proper and existing SPEC is included.
 326   ##############################################################################
 327 
 328   include $(SRC_ROOT)/make/common/MakeBase.gmk
 329 
 330   # Define basic logging setup
 331   BUILD_LOG := $(OUTPUT_ROOT)/build.log
 332   BUILD_TRACE_LOG := $(OUTPUT_ROOT)/build-trace-time.log
 333 
 334   BUILD_LOG_PIPE := > >($(TEE) -a $(BUILD_LOG)) 2> >($(TEE) -a $(BUILD_LOG) >&2) && wait
 335 
 336   # Sanity check the spec file, so it matches this source code
 337   define CheckSpecSanity
 338     ifneq ($$(ACTUAL_TOPDIR), $$(TOPDIR))
 339       ifneq ($$(ACTUAL_TOPDIR), $$(ORIGINAL_TOPDIR))
 340         ifneq ($$(ACTUAL_TOPDIR), $$(CANONICAL_TOPDIR))
 341           $$(info Error: SPEC mismatch! Current working directory)
 342           $$(info $$(ACTUAL_TOPDIR))
 343           $$(info does not match either TOPDIR, ORIGINAL_TOPDIR or CANONICAL_TOPDIR)
 344           $$(info $$(TOPDIR))
 345           $$(info $$(ORIGINAL_TOPDIR))
 346           $$(info $$(CANONICAL_TOPDIR))
 347           $$(error Cannot continue)
 348         endif
 349       endif
 350     endif
 351   endef
 352 
 353   # Parse COMPARE_BUILD into COMPARE_BUILD_*
 354   # Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:


< prev index next >