#-----------------------------------------------------------
# Copyright Christian Arnault LAL-Orsay CNRS
# arnault@lal.in2p3.fr
# See the complete license in cmt_license.txt "http://www.cecill.info". 
#-----------------------------------------------------------

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

#
#  Basic tag management
#
!if defined (tag)
CMTEXTRATAGS = $(tag)
!else
!if defined (CMTCONFIG)
tag = $(CMTCONFIG) 
!else
tag = VisualC
!endif
!endif

tags      = $(tag),$(CMTEXTRATAGS)

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

all :: check_config

check_config ::
	$(cmtexe) check configuration

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




