[487] | 1 | #-- start of constituents_header ------ |
---|
[6] | 2 | |
---|
| 3 | !include $(CMTROOT)/src/NMakefile.core |
---|
| 4 | |
---|
| 5 | !if defined (tag) |
---|
| 6 | CMTEXTRATAGS = $(tag) |
---|
| 7 | !else |
---|
| 8 | tag = $(CMTCONFIG) |
---|
| 9 | !endif |
---|
| 10 | |
---|
| 11 | tags = $(tag),$(CMTEXTRATAGS) |
---|
| 12 | |
---|
| 13 | ${PACKAGE}_tag = $(tag) |
---|
[469] | 14 | #cmt_local_tagfile = $(bin)$(tag).nmake |
---|
| 15 | cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).nmake |
---|
[6] | 16 | |
---|
[487] | 17 | cmt_local_setup = $(bin)setup.nmake.tmp |
---|
| 18 | cmt_final_setup = $(bin)setup.nmake |
---|
[472] | 19 | |
---|
[547] | 20 | #!if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile)) |
---|
[487] | 21 | |
---|
[547] | 22 | #!if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile)] == 0 |
---|
| 23 | #!endif |
---|
| 24 | #!if [cmt build tag_makefile -tag_add=$(tags) >$(cmt_local_tagfile)] == 0 |
---|
| 25 | #!endif |
---|
[6] | 26 | |
---|
[547] | 27 | #!if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup)] == 0 |
---|
| 28 | #!endif |
---|
| 29 | #!if [cmt -tag=$(tags) show setup >$(cmt_local_setup)] == 0 |
---|
| 30 | #!endif |
---|
[472] | 31 | |
---|
[547] | 32 | #!if exist ($(cmt_final_setup)) && [ echo n|comp $(cmt_final_setup) $(cmt_local_setup) >nul 2>&1 ] == 0 |
---|
| 33 | #!if [ del $(cmt_local_setup) ] == 0 |
---|
| 34 | #!endif |
---|
| 35 | #!else |
---|
| 36 | #!if [ move /y $(cmt_local_setup) $(cmt_final_setup) >nul ] == 0 |
---|
| 37 | #!endif |
---|
| 38 | #!endif |
---|
[487] | 39 | |
---|
[547] | 40 | #!endif |
---|
[487] | 41 | |
---|
[469] | 42 | #!include $(${PACKAGE}_tag).nmake |
---|
| 43 | !include $(cmt_local_tagfile) |
---|
[6] | 44 | |
---|
[595] | 45 | #all :: |
---|
[6] | 46 | |
---|
| 47 | #-------------------------------------------------------- |
---|
| 48 | |
---|
[487] | 49 | #cmt_lock_setup = lock$(cmt_lock_pid).nmake |
---|
| 50 | #cmt_setup_pid = $(bin)setup.nmake |
---|
[6] | 51 | |
---|
[487] | 52 | #config :: ##$(${PACKAGE}_tag).nmake |
---|
[6] | 53 | |
---|
| 54 | env.nmake :: |
---|
[459] | 55 | @set >env.nmake.tmp; $(cmtexe) check files env.nmake.tmp env.nmake |
---|
[6] | 56 | |
---|
[595] | 57 | all :: ; |
---|
[6] | 58 | |
---|
| 59 | javadirs :: |
---|
| 60 | @if not exist $(javabin) mkdir $(javabin) |
---|
| 61 | |
---|
| 62 | srcdirs :: |
---|
| 63 | @if not exist $(src) mkdir $(src) |
---|
| 64 | |
---|
[595] | 65 | #dirs :: requirements |
---|
| 66 | dirs :: |
---|
[6] | 67 | @if not exist $(bin) mkdir $(bin) |
---|
[487] | 68 | |
---|
[595] | 69 | #requirements : |
---|
| 70 | # @if not exist requirements echo "No requirements file" |
---|
[6] | 71 | |
---|
[487] | 72 | #!if "$(QUICK)" == "" |
---|
| 73 | #dirs :: |
---|
| 74 | # @if not exist requirements echo "No requirements file" |
---|
| 75 | # $(echo) (constituents.nmake) Rebuilding setup.nmake |
---|
| 76 | # @if not exist $(bin) mkdir $(bin) |
---|
| 77 | # @$(cmtexe) -tag=$(tags) show setup >$(cmt_setup_pid) |
---|
| 78 | # $(echo) setup.nmake ok |
---|
| 79 | #!else |
---|
| 80 | #dirs :: |
---|
| 81 | # @if not exist requirements echo "No requirements file" |
---|
| 82 | # @if not exist $(bin) mkdir $(bin) |
---|
| 83 | #!endif |
---|
| 84 | |
---|
[595] | 85 | #.DEFAULT : |
---|
| 86 | # $(echo) "???" |
---|
[6] | 87 | |
---|
[595] | 88 | !if "$(use_requirements)" != "" |
---|
| 89 | $(use_requirements) : ; |
---|
| 90 | !endif |
---|
| 91 | |
---|
[487] | 92 | #-- end of constituents_header ------ |
---|