[2] | 1 | |
---|
| 2 | #-- start of constituents_header ------ |
---|
| 3 | |
---|
| 4 | include ${CMTROOT}/src/Makefile.core |
---|
| 5 | |
---|
| 6 | ifdef tag |
---|
| 7 | CMTEXTRATAGS = $(tag) |
---|
| 8 | else |
---|
| 9 | tag = $(CMTCONFIG) |
---|
| 10 | endif |
---|
| 11 | |
---|
| 12 | tags = $(tag),$(CMTEXTRATAGS) |
---|
| 13 | |
---|
| 14 | ${PACKAGE}_tag = $(tag) |
---|
| 15 | |
---|
[434] | 16 | #cmt_local_tagfile = $(${PACKAGE}_tag).make |
---|
| 17 | cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).make |
---|
[2] | 18 | |
---|
[434] | 19 | #-include $(cmt_local_tagfile) |
---|
| 20 | include $(cmt_local_tagfile) |
---|
[2] | 21 | |
---|
[487] | 22 | #cmt_local_setup = $(bin)setup$$$$.make |
---|
| 23 | #cmt_local_setup = $(bin)$(package)setup$$$$.make |
---|
[434] | 24 | #cmt_final_setup = $(bin)${PACKAGE}setup.make |
---|
[487] | 25 | cmt_final_setup = $(bin)setup.make |
---|
| 26 | #cmt_final_setup = $(bin)$(package)setup.make |
---|
[2] | 27 | |
---|
[588] | 28 | cmt_build_library_linksstamp = $(bin)cmt_build_library_links.stamp |
---|
[2] | 29 | #-------------------------------------------------------- |
---|
| 30 | |
---|
[434] | 31 | #cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make |
---|
| 32 | #cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make |
---|
[2] | 33 | |
---|
[434] | 34 | #first :: $(cmt_local_tagfile) |
---|
| 35 | # @echo $(cmt_local_tagfile) ok |
---|
[487] | 36 | #ifndef QUICK |
---|
| 37 | #first :: $(cmt_final_setup) ; |
---|
| 38 | #else |
---|
| 39 | #first :: ; |
---|
| 40 | #endif |
---|
[2] | 41 | |
---|
[459] | 42 | ## @bin=`$(cmtexe) show macro_value bin` |
---|
[2] | 43 | |
---|
[434] | 44 | #$(cmt_local_tagfile) : $(cmt_lock_setup) |
---|
| 45 | # @echo "#CMT> Error: $@: No such file" >&2; exit 1 |
---|
[487] | 46 | #$(cmt_local_tagfile) : |
---|
| 47 | # @echo "#CMT> Warning: $@: No such file" >&2; exit |
---|
[434] | 48 | # @echo "#CMT> Info: $@: No need to rebuild file" >&2; exit |
---|
| 49 | |
---|
[487] | 50 | #$(cmt_final_setup) : $(cmt_local_tagfile) |
---|
| 51 | # $(echo) "(constituents.make) Rebuilding $@" |
---|
| 52 | # @if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \ |
---|
| 53 | # if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \ |
---|
| 54 | # trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \ |
---|
| 55 | # $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \ |
---|
| 56 | # if test ! -f $@; then \ |
---|
| 57 | # mv $(cmt_local_setup) $@; \ |
---|
| 58 | # else \ |
---|
| 59 | # if /usr/bin/diff $(cmt_local_setup) $@ >/dev/null ; then \ |
---|
| 60 | # : ; \ |
---|
| 61 | # else \ |
---|
| 62 | # mv $(cmt_local_setup) $@; \ |
---|
| 63 | # fi; \ |
---|
| 64 | # fi |
---|
[434] | 65 | |
---|
[441] | 66 | # @/bin/echo $@ ok |
---|
| 67 | |
---|
[487] | 68 | #config :: checkuses |
---|
| 69 | # @exit 0 |
---|
| 70 | #checkuses : ; |
---|
[2] | 71 | |
---|
| 72 | env.make :: |
---|
[459] | 73 | printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make |
---|
[2] | 74 | |
---|
[434] | 75 | ifndef QUICK |
---|
[588] | 76 | all :: build_library_links ; |
---|
| 77 | else |
---|
| 78 | all :: $(cmt_build_library_linksstamp) ; |
---|
[434] | 79 | endif |
---|
[2] | 80 | |
---|
| 81 | javadirs :: |
---|
| 82 | @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi |
---|
| 83 | |
---|
| 84 | srcdirs :: |
---|
| 85 | @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi |
---|
| 86 | |
---|
[487] | 87 | dirs :: requirements |
---|
| 88 | @if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi |
---|
| 89 | # @if test ! -r requirements ; then echo "No requirements file" ; fi; \ |
---|
| 90 | # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi |
---|
[2] | 91 | |
---|
[588] | 92 | #requirements : |
---|
| 93 | # @if test ! -r requirements ; then echo "No requirements file" ; fi |
---|
[487] | 94 | |
---|
| 95 | build_library_links : dirs |
---|
[441] | 96 | $(echo) "(constituents.make) Rebuilding library links"; \ |
---|
[487] | 97 | $(build_library_links) |
---|
| 98 | # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ |
---|
| 99 | # $(build_library_links) |
---|
[2] | 100 | |
---|
[588] | 101 | $(cmt_build_library_linksstamp) : $(cmt_final_setup) $(cmt_local_tagfile) $(bin)library_links.in |
---|
| 102 | $(echo) "(constituents.make) Rebuilding library links"; \ |
---|
| 103 | $(build_library_links) -f=$(bin)library_links.in -without_cmt |
---|
| 104 | $(silent) \touch $@ |
---|
| 105 | |
---|
| 106 | ifndef PEDANTIC |
---|
[2] | 107 | .DEFAULT :: |
---|
[588] | 108 | #.DEFAULT : |
---|
[459] | 109 | $(echo) "(constituents.make) $@: No rule for such target" >&2 |
---|
[588] | 110 | endif |
---|
[95] | 111 | |
---|
[588] | 112 | ${CMTROOT}/src/Makefile.core : ; |
---|
| 113 | ifdef use_requirements |
---|
| 114 | $(use_requirements) : ; |
---|
| 115 | endif |
---|
[434] | 116 | |
---|
[2] | 117 | #-- end of constituents_header ------ |
---|