source: CMT/v1r23/src/NMakefile.header

Last change on this file was 555, checked in by rybkin, 14 years ago

See C.L. 440

  • Property svn:eol-style set to native
File size: 2.6 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!error (NMakefile.header) Cannot create "$(bin)"
73!endif
74!ENDIF
75
76!if "$(QUICK)" == "" || !exist ($(cmt_constituents_makefile))
77
78!if [$(echo) (NMakefile.header) Rebuilding $(cmt_constituents_makefile)] == 0
79!endif
80!if [$(cmtexe) -tag=$(tags) build constituents_config -out=$(cmt_constituents_makefile)] != 0
81!error (NMakefile.header) Cannot rebuild $(cmt_constituents_makefile)
82#!if [$(cmtexe) -tag=$(tags) build constituents_makefile -out=$(cmt_constituents_makefile)] == 0
83!endif
84
85!endif
86
87!include $(cmt_constituents_makefile)
88#!include constituents.nmake
89
90
Note: See TracBrowser for help on using the repository browser.