source: CMT/v1r25p20140131/mgr/NMake

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

See C.L. 378

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1
2cmtexe = ..\$(CMTBIN)\cmt.exe
3bin = ..\VisualC
4
5!if exist ("$(bin)") == 0
6!if [mkdir $(bin)] == 0
7!endif
8!endif
9
10!if [copy cmt_dependencies.nmake $(bin)] == 0
11!endif
12
13!if exist ("$(cmtexe)")
14!if [$(cmtexe) -quiet build constituent_makefile cmt] == 0
15!endif
16!else
17!if [echo no cmt] == 0
18!endif
19!endif
20
21cmt_install_action = echo
22cmt_uninstall_action = echo
23CMTINSTALLAREA =
24
25#all ::
26#       set include=$(include)
27#       set lib=$(lib)
28
29all :: cmt post_build cmttag
30        @echo all ok
31
32post_build :: cmt_dependencies.nmake
33
34cmt_dependencies.nmake :: $(cmtexe)
35        @echo Rebuilding dependencies.nmake without stamps
36        @$(cmtexe) build dependencies cmt -all_sources -no_stamps
37        @copy $(bin)\cmt_dependencies.nmake ..\mgr
38        @$(cmtexe) build dependencies cmt -all_sources
39
40!include cmt.nmake
41
42
43cmttag ::
44        @echo Rebuilding VisualC.nmake
45        @$(cmtexe) build tag_makefile | find /I /V "Arnault" | find /I /V "rybkin" | find /I /V "include=" | find /I /V "lib=" | find /I /V "PATH=" | find /I /V "CMTROOT=" >VisualC.nmake
46
47democlean ::
48        -rmdir /Q /S ..\demo
49
50demo :: democlean
51        cd ..
52        $(cmtexe) create_project demo
53        cd demo
54        $(cmtexe) create demoA v1
55        $(cmtexe) create demoB v1
56        $(cmtexe) create demoC v1
57        mkdir demoA\v1\demoA
58        mkdir demoA\v1\cmt\fragments
59        mkdir demoA\v1\cmt\fragments\nmake
60        copy ..\src\demo\demoA\requirements demoA\v1\cmt
61        copy ..\src\demo\demoA\init.bat demoA\v1\cmt
62        copy ..\src\demo\demoA\*.cxx demoA\v1\src
63        copy ..\src\demo\demoA\demoA.h demoA\v1\demoA
64        copy ..\src\demo\demoA\*.java demoA\v1\src
65        copy ..\src\demo\demoA\fragments\rename* demoA\v1\cmt\fragments
66        copy ..\src\demo\demoA\fragments\nmake\rename* demoA\v1\cmt\fragments\nmake
67        copy ..\src\demo\demoB\requirements demoB\v1\cmt
68        copy ..\src\demo\demoB\init.bat demoB\v1\cmt
69        copy ..\src\demo\demoB\*.cxx demoB\v1\src
70        copy ..\src\demo\demoB\*.java demoB\v1\src
71        copy ..\src\demo\demoC\requirements demoC\v1\cmt
72        copy ..\src\demo\demoC\*.cxx demoC\v1\src
73        set CMTPATH=$(CMTROOT)\demo
74        cd demoA\v1\cmt
75        call setup.bat
76        nmake /f nmake all_groups check
77        cd ..\..\..\demoB\v1\cmt
78        call setup.bat
79        nmake /f nmake all check
80        cd ..\..\..\demoC\v1\cmt
81        call setup.bat
82        $(cmtexe) config
83        nmake /f nmake all check
84
85
86gendoc :
87        @cd ../doc
88        @\Arnault\Python23\python.exe gendoc.py CMTDoc.xml >CMTDoc.html
89
Note: See TracBrowser for help on using the repository browser.