
!include $(CMTROOT)/src/NMakefile.core

#
#  Basic tag management
#
!if defined (tag)
####---------------------------------------------------------------------------------
#### It seems that side effects of changing CMTCONFIG are too serious. Therefore this
#### approach is discarded
####
####CMTCONFIG = $(tag)
####---------------------------------------------------------------------------------
CMTEXTRATAGS = $(tag)
!else
!if defined (CMTCONFIG)
tag = $(CMTCONFIG) 
!else
tag = VisualC
!endif
!endif

tags      = $(CMTEXTRATAGS)

#
#  Generic entry points for all targets
#
build_strategy = rebuild_makefiles
build_dependencies = echo

all ::

configclean ::
	del *nmake* setup.* cleanup.*

help :: dirs
	@echo --------------------------------------------------------------------------
	@echo You may select one of the following make targets :
	@echo  
	@echo help        : this help
	@echo all         : rebuild everything according to the $$(constituents) macro
	@echo               (this is the default target)
	@echo clean       : remove everything that can be rebuilt
	@echo configclean : remove configuration files (*.nmake)
	@echo  
	@echo check :
	@echo               run all applications defined with the -check option
	@echo  
	@echo everywhere [target=...] : 
	@echo               o Rebuild on all plateforms specified in the $$(everywhere) macro
	@echo               o Use "cmt show macro everywhere -tag=<site>" to check it
	@echo               o The "target" option permits to transmit a target to the remote site


!if [$(cmtexe) -quiet build constituents_makefile -tag=$(tags)] == 0
!endif

!include constituents.nmake



