source: CMT/HEAD/mgr/fragments/package @ 652

Last change on this file since 652 was 652, checked in by rybkin, 11 years ago

See C.L. 511

File size: 5.0 KB
RevLine 
[588]1
[652]2cmt_${PACKAGE}_${ISINCLUDED} = 1
[588]3cmt_${PACKAGE}_${ISLOCAL} = 1
4
5${PACKAGE}FullName=${PACKAGEFULLNAME}
6${PACKAGE}MgrPath=${PACKAGEMGRPATH}
7
8ifdef LOG_LOCATION
[652]9ifdef cmt_${PACKAGE}_is_included
[588]10ifdef cmt_${PACKAGE}_is_local
11${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
12else
13ifdef BCAST_GLOBAL
14${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
15endif
16endif
17endif
[652]18endif
[588]19
20ifndef BCAST_ONLY
21${PACKAGE} : ${DEPENDENCIES} $(${PACKAGE}MgrPath)/Makefile
22else
23${PACKAGE} : $(${PACKAGE}MgrPath)/Makefile
24endif
[652]25ifdef cmt_${PACKAGE}_is_included
[588]26ifdef cmt_${PACKAGE}_is_local
27        @echo "#--------------------------------------------------------------" \
[599]28          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
[588]29          && echo "#--------------------------------------------------------------"
30ifdef 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)
35endif
36ifdef NO_ALL_GROUPS
[600]37        +$(silent) cd $(${PACKAGE}MgrPath) && \
38          { $(BCAST_CMD) $(Package_failure_handler); } \
39          $(${PACKAGE}OutErr)
[588]40else
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]46endif
47else
48ifdef BCAST_GLOBAL
49        @echo "#--------------------------------------------------------------" \
[599]50          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
[588]51          && echo "#--------------------------------------------------------------"
52ifdef 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)
57endif
58ifdef NO_ALL_GROUPS
[600]59        +$(silent) cd $(${PACKAGE}MgrPath) && \
60          { $(BCAST_CMD) $(Package_failure_handler); } \
61          $(${PACKAGE}OutErr)
[588]62else
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]68endif
69else
70       
71endif
72endif
[652]73else
74       
75endif
[588]76
77$(${PACKAGE}MgrPath)/Makefile :
[652]78ifdef cmt_${PACKAGE}_is_included
[588]79ifdef cmt_${PACKAGE}_is_local
80        $(echo) configuring ${PACKAGE}
81        +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config
82else
83ifdef BCAST_GLOBAL
84        $(echo) configuring ${PACKAGE}
85        +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config
86else
87       
88endif
89endif
[652]90else
91       
92endif
[588]93
94ifndef BCAST_ONLY
95all : ${PACKAGE}
96clean : ${PACKAGE}clean
97binclean : ${PACKAGE}binclean
98uninstall : ${PACKAGE}uninstall
[595]99check : ${PACKAGE}check
[588]100endif
101
[595]102${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : $(${PACKAGE}MgrPath)/Makefile
[652]103ifdef cmt_${PACKAGE}_is_included
[588]104ifdef 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]108ifdef LOG_LOCATION
109        @{ echo "#--------------------------------------------------------------" \
110          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
111          && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr)
112endif
113        +$(silent) cd $(${PACKAGE}MgrPath) && \
114          { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \
115          $(${PACKAGE}OutErr)
[588]116else
117ifdef 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]121ifdef LOG_LOCATION
122        @{ echo "#--------------------------------------------------------------" \
123          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
124          && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr)
125endif
126        +$(silent) cd $(${PACKAGE}MgrPath) && \
127          { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \
128          $(${PACKAGE}OutErr)
[588]129else
130       
131endif
132endif
[652]133else
134       
135endif
[588]136
[595]137${PACKAGE} ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : FORCE
Note: See TracBrowser for help on using the repository browser.