#----------------------------------------------------------- # 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 !if "$(QUICK)" == "" all :: check_config ; !else all :: ; !endif 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 binclean : fast erase of the binary directory @echo uninstall : remove everything installed in the installation area @echo. @for /F "usebackq" %%i in (`$(cmtexe) show groups -tag^=$(tags)`) do \ @echo %%i : rebuild all constituents of group %%i @echo Constituents: & \ for /F "usebackq" %%i in (`$(cmtexe) show constituent_names -tag^=$(tags)`) do \ @echo %%i %%iclean %%iuninstall @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=" to check it # @echo o The "target" option permits to transmit a target to the remote site cmt_constituents_makefile = $(bin)constituents.nmake !IF !EXIST ("$(bin)") !if [mkdir "$(bin)"] == 0 !endif !ENDIF !if "$(QUICK)" == "" || !exist ($(cmt_constituents_makefile)) !if [$(echo) (NMakefile.header) Rebuilding $(cmt_constituents_makefile)] == 0 !endif !if [$(cmtexe) -tag=$(tags) build constituents_makefile -out=$(cmt_constituents_makefile)] == 0 !endif !endif !include $(cmt_constituents_makefile) #!include constituents.nmake