Changeset 588 for CMT/HEAD/mgr/fragments/constituent_lock
- Timestamp:
- Nov 27, 2011, 4:36:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/mgr/fragments/constituent_lock
r561 r588 44 44 endif 45 45 46 not_${CONSTITUENT}_dependencies = { n=0; for p in $?; do m=0; for d in $(${CONSTITUENT}_dependencies); do if [ $$p = $$d ]; then m=1; break; fi; done; if [ $$m -eq 0 ]; then n=1; break; fi; done; [ $$n -eq 1 ]; } 47 46 48 ifdef STRUCTURED_OUTPUT 47 49 ${CONSTITUENT}dirs : … … 73 75 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 74 76 else 75 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) 76 if [ ! -f $@ ] || [ ! -f $(cmt_local_tagfile_${CONSTITUENT}) ] || \ 77 [ ! -f $(cmt_final_setup_${CONSTITUENT}) ]; then \ 77 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(cmt_build_library_linksstamp) $(use_requirements) 78 @if [ ! -f $@ ] || [ ! -f $(cmt_local_tagfile_${CONSTITUENT}) ] || \ 79 [ ! -f $(cmt_final_setup_${CONSTITUENT}) ] || \ 80 $(not_${CONSTITUENT}_dependencies) ; then \ 78 81 test -z "$(cmtmsg)" || \ 79 82 echo "$(CMTMSGPREFIX)" "(constituents.make) Building ${CONSTITUENT}.make"; \ … … 89 92 $(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -without_cmt -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 90 93 else 91 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) 92 if [ ! -f $@ ] || [ ! -f $(cmt_local_tagfile_${CONSTITUENT}) ] || \ 93 [ ! -f $(cmt_final_setup_${CONSTITUENT}) ]; then \ 94 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(cmt_build_library_linksstamp) $(bin)${CONSTITUENT}.in 95 @if [ ! -f $@ ] || [ ! -f $(cmt_local_tagfile_${CONSTITUENT}) ] || \ 96 [ ! -f $(cmt_final_setup_${CONSTITUENT}) ] || \ 97 $(not_${CONSTITUENT}_dependencies) ; then \ 94 98 test -z "$(cmtmsg)" || \ 95 99 echo "$(CMTMSGPREFIX)" "(constituents.make) Building ${CONSTITUENT}.make"; \ … … 107 111 retval=$$?; \ 108 112 trap '${unlock_command} ${CONSTITUENT}${lock_suffix}; exit $${retval}' 1 2 15; \ 113 if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 109 114 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}; \ 115 fi; \ 110 116 retval=$$?; ${unlock_command} ${CONSTITUENT}${lock_suffix}; exit $${retval} 111 117 $(echo) "(constituents.make) ${CONSTITUENT} done" … … 130 136 $(echo) "(constituents.make) install ${CONSTITUENT} done" 131 137 132 uninstall : :${CONSTITUENT}uninstall138 uninstall : ${CONSTITUENT}uninstall 133 139 134 140 $(foreach d,$(${CONSTITUENT}_dependencies),$(eval $(d)uninstall_dependencies += ${CONSTITUENT}uninstall)) 135 141 136 ${CONSTITUENT}uninstall : : $(${CONSTITUENT}uninstall_dependencies)$(cmt_local_${CONSTITUENT}_makefile)142 ${CONSTITUENT}uninstall : $(${CONSTITUENT}uninstall_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 137 143 $(echo) "(constituents.make) Starting uninstall ${CONSTITUENT}" 138 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 144 @if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 145 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall; \ 146 fi 147 # @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 139 148 $(echo) "(constituents.make) uninstall ${CONSTITUENT} done" 149 150 remove_library_links :: ${CONSTITUENT}uninstall 140 151 141 152 ifndef PEDANTIC
Note: See TracChangeset
for help on using the changeset viewer.