source: CMT/v1r20p20090520/src/NMakefile.header

Last change on this file was 487, checked in by rybkin, 15 years ago

See C.L. 382

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1#-----------------------------------------------------------
2# Copyright Christian Arnault LAL-Orsay CNRS
3# arnault@lal.in2p3.fr
4# See the complete license in cmt_license.txt "http://www.cecill.info".
5#-----------------------------------------------------------
6
7!include $(CMTROOT)/src/NMakefile.core
8
9#
10#  Basic tag management
11#
12!if defined (tag)
13CMTEXTRATAGS = $(tag)
14!else
15!if defined (CMTCONFIG)
16tag = $(CMTCONFIG)
17!else
18tag = VisualC
19!endif
20!endif
21
22tags      = $(tag),$(CMTEXTRATAGS)
23
24#
25#  Generic entry points for all targets
26#
27build_strategy = rebuild_makefiles
28build_dependencies = echo
29
30!if "$(QUICK)" == ""
31all :: check_config ;
32!else
33all :: ;
34!endif
35
36check_config ::
37        @$(cmtexe) check configuration
38
39configclean ::
40        del *nmake* setup.* cleanup.*
41
42help :: dirs
43        @echo --------------------------------------------------------------------------
44        @echo You may select one of the following make targets :
45        @echo.
46        @echo help        : this help
47        @echo all         : rebuild everything according to the $$(constituents) macro
48        @echo               (this is the default target)
49        @echo clean       : remove everything that can be rebuilt
50#       @echo configclean : remove configuration files (*.nmake)
51        @echo binclean    : fast erase of the binary directory
52        @echo uninstall   : remove everything installed in the installation area
53        @echo.
54        @for /F "usebackq" %%i in (`$(cmtexe) show groups -tag^=$(tags)`) do \
55          @echo %%i : rebuild all constituents of group %%i
56        @echo Constituents: & \
57          for /F "usebackq" %%i in (`$(cmtexe) show constituent_names -tag^=$(tags)`) do \
58            @echo   %%i  %%iclean  %%iuninstall
59        @echo.
60        @echo check :
61        @echo               run all applications defined with the -check option
62        @echo.
63#       @echo everywhere [target=...] :
64#       @echo               o Rebuild on all plateforms specified in the $$(everywhere) macro
65#       @echo               o Use "cmt show macro everywhere -tag=<site>" to check it
66#       @echo               o The "target" option permits to transmit a target to the remote site
67
68cmt_constituents_makefile = $(bin)constituents.nmake
69
70!IF !EXIST ("$(bin)")
71!if [mkdir "$(bin)"] == 0
72!endif
73!ENDIF
74
75!if "$(QUICK)" == "" || !exist ($(cmt_constituents_makefile))
76
77!if [$(echo) (NMakefile.header) Rebuilding $(cmt_constituents_makefile)] == 0
78!endif
79!if [$(cmtexe) -tag=$(tags) build constituents_makefile -out=$(cmt_constituents_makefile)] == 0
80!endif
81
82!endif
83
84!include $(cmt_constituents_makefile)
85#!include constituents.nmake
86
87
Note: See TracBrowser for help on using the repository browser.