[588] | 1 | |
---|
[652] | 2 | cmt_${PACKAGE}_${ISINCLUDED} = 1 |
---|
[588] | 3 | cmt_${PACKAGE}_${ISLOCAL} = 1 |
---|
| 4 | |
---|
| 5 | ${PACKAGE}FullName=${PACKAGEFULLNAME} |
---|
| 6 | ${PACKAGE}MgrPath=${PACKAGEMGRPATH} |
---|
| 7 | |
---|
| 8 | ifdef LOG_LOCATION |
---|
[652] | 9 | ifdef cmt_${PACKAGE}_is_included |
---|
[588] | 10 | ifdef cmt_${PACKAGE}_is_local |
---|
| 11 | ${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1 |
---|
| 12 | else |
---|
| 13 | ifdef BCAST_GLOBAL |
---|
| 14 | ${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1 |
---|
| 15 | endif |
---|
| 16 | endif |
---|
| 17 | endif |
---|
[652] | 18 | endif |
---|
[588] | 19 | |
---|
| 20 | ifndef BCAST_ONLY |
---|
| 21 | ${PACKAGE} : ${DEPENDENCIES} $(${PACKAGE}MgrPath)/Makefile |
---|
| 22 | else |
---|
| 23 | ${PACKAGE} : $(${PACKAGE}MgrPath)/Makefile |
---|
| 24 | endif |
---|
[652] | 25 | ifdef cmt_${PACKAGE}_is_included |
---|
[588] | 26 | ifdef cmt_${PACKAGE}_is_local |
---|
| 27 | @echo "#--------------------------------------------------------------" \ |
---|
[599] | 28 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 29 | && echo "#--------------------------------------------------------------" |
---|
| 30 | ifdef LOG_LOCATION |
---|
[599] | 31 | $(silent) > $(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) |
---|
[588] | 32 | @{ echo "#--------------------------------------------------------------" \ |
---|
[599] | 33 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 34 | && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr) |
---|
| 35 | endif |
---|
| 36 | ifdef NO_ALL_GROUPS |
---|
[600] | 37 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 38 | { $(BCAST_CMD) $(Package_failure_handler); } \ |
---|
| 39 | $(${PACKAGE}OutErr) |
---|
[588] | 40 | else |
---|
| 41 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 42 | for group in all $$($(cmtexe) show groups); do \ |
---|
| 43 | $(Cmt_actions_handler) \ |
---|
[600] | 44 | $(BCAST_CMD) $$group $(Package_failure_handler) ; \ |
---|
| 45 | done $(${PACKAGE}OutErr) |
---|
[588] | 46 | endif |
---|
| 47 | else |
---|
| 48 | ifdef BCAST_GLOBAL |
---|
| 49 | @echo "#--------------------------------------------------------------" \ |
---|
[599] | 50 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 51 | && echo "#--------------------------------------------------------------" |
---|
| 52 | ifdef LOG_LOCATION |
---|
[599] | 53 | $(silent) > $(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) |
---|
[588] | 54 | @{ echo "#--------------------------------------------------------------" \ |
---|
[599] | 55 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 56 | && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr) |
---|
| 57 | endif |
---|
| 58 | ifdef NO_ALL_GROUPS |
---|
[600] | 59 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 60 | { $(BCAST_CMD) $(Package_failure_handler); } \ |
---|
| 61 | $(${PACKAGE}OutErr) |
---|
[588] | 62 | else |
---|
| 63 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 64 | for group in all $$($(cmtexe) show groups); do \ |
---|
| 65 | $(Cmt_actions_handler) \ |
---|
[600] | 66 | $(BCAST_CMD) $$group $(Package_failure_handler) ; \ |
---|
| 67 | done $(${PACKAGE}OutErr) |
---|
[588] | 68 | endif |
---|
| 69 | else |
---|
| 70 | |
---|
| 71 | endif |
---|
| 72 | endif |
---|
[652] | 73 | else |
---|
| 74 | |
---|
| 75 | endif |
---|
[588] | 76 | |
---|
| 77 | $(${PACKAGE}MgrPath)/Makefile : |
---|
[652] | 78 | ifdef cmt_${PACKAGE}_is_included |
---|
[588] | 79 | ifdef cmt_${PACKAGE}_is_local |
---|
| 80 | $(echo) configuring ${PACKAGE} |
---|
| 81 | +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config |
---|
| 82 | else |
---|
| 83 | ifdef BCAST_GLOBAL |
---|
| 84 | $(echo) configuring ${PACKAGE} |
---|
| 85 | +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config |
---|
| 86 | else |
---|
| 87 | |
---|
| 88 | endif |
---|
| 89 | endif |
---|
[652] | 90 | else |
---|
| 91 | |
---|
| 92 | endif |
---|
[588] | 93 | |
---|
| 94 | ifndef BCAST_ONLY |
---|
| 95 | all : ${PACKAGE} |
---|
| 96 | clean : ${PACKAGE}clean |
---|
| 97 | binclean : ${PACKAGE}binclean |
---|
| 98 | uninstall : ${PACKAGE}uninstall |
---|
[595] | 99 | check : ${PACKAGE}check |
---|
[588] | 100 | endif |
---|
| 101 | |
---|
[595] | 102 | ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : $(${PACKAGE}MgrPath)/Makefile |
---|
[652] | 103 | ifdef cmt_${PACKAGE}_is_included |
---|
[588] | 104 | ifdef cmt_${PACKAGE}_is_local |
---|
| 105 | @echo "#--------------------------------------------------------------" \ |
---|
[599] | 106 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 107 | && echo "#--------------------------------------------------------------" |
---|
[600] | 108 | ifdef LOG_LOCATION |
---|
| 109 | @{ echo "#--------------------------------------------------------------" \ |
---|
| 110 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \ |
---|
| 111 | && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr) |
---|
| 112 | endif |
---|
| 113 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 114 | { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \ |
---|
| 115 | $(${PACKAGE}OutErr) |
---|
[588] | 116 | else |
---|
| 117 | ifdef BCAST_GLOBAL |
---|
| 118 | @echo "#--------------------------------------------------------------" \ |
---|
[599] | 119 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \ |
---|
[588] | 120 | && echo "#--------------------------------------------------------------" |
---|
[600] | 121 | ifdef LOG_LOCATION |
---|
| 122 | @{ echo "#--------------------------------------------------------------" \ |
---|
| 123 | && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \ |
---|
| 124 | && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr) |
---|
| 125 | endif |
---|
| 126 | +$(silent) cd $(${PACKAGE}MgrPath) && \ |
---|
| 127 | { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \ |
---|
| 128 | $(${PACKAGE}OutErr) |
---|
[588] | 129 | else |
---|
| 130 | |
---|
| 131 | endif |
---|
| 132 | endif |
---|
[652] | 133 | else |
---|
| 134 | |
---|
| 135 | endif |
---|
[588] | 136 | |
---|
[595] | 137 | ${PACKAGE} ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : FORCE |
---|