1 | |
---|
2 | cmtexe = ..\$(CMTBIN)\cmt.exe |
---|
3 | bin = ..\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 | |
---|
21 | cmt_install_action = echo |
---|
22 | cmt_uninstall_action = echo |
---|
23 | CMTINSTALLAREA = |
---|
24 | |
---|
25 | #all :: |
---|
26 | # set include=$(include) |
---|
27 | # set lib=$(lib) |
---|
28 | |
---|
29 | all :: cmt post_build cmttag |
---|
30 | @echo all ok |
---|
31 | |
---|
32 | post_build :: cmt_dependencies.nmake |
---|
33 | |
---|
34 | cmt_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 | |
---|
43 | cmttag :: |
---|
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 | |
---|
47 | democlean :: |
---|
48 | -rmdir /Q /S ..\demo |
---|
49 | |
---|
50 | demo :: 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 | |
---|
86 | gendoc : |
---|
87 | @cd ../doc |
---|
88 | @\Arnault\Python23\python.exe gendoc.py CMTDoc.xml >CMTDoc.html |
---|
89 | |
---|