Changeset 588 for CMT/HEAD/mgr/fragments
- Timestamp:
- Nov 27, 2011, 4:36:15 PM (13 years ago)
- Location:
- CMT/HEAD/mgr/fragments
- Files:
-
- 4 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/mgr/fragments/c
r487 r588 20 20 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 21 21 22 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 23 22 24 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) 23 25 endif -
CMT/HEAD/mgr/fragments/c_library
r487 r588 20 20 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 21 21 22 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 23 22 24 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) 23 25 endif -
CMT/HEAD/mgr/fragments/constituent
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"; \ … … 104 108 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs ${CONSTITUENT}dirs 105 109 $(echo) "(constituents.make) Starting ${CONSTITUENT}" 106 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 110 @if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 111 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}; \ 112 fi 113 # @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 107 114 $(echo) "(constituents.make) ${CONSTITUENT} done" 108 115 … … 126 133 $(echo) "(constituents.make) install ${CONSTITUENT} done" 127 134 128 uninstall : :${CONSTITUENT}uninstall135 uninstall : ${CONSTITUENT}uninstall 129 136 130 137 $(foreach d,$(${CONSTITUENT}_dependencies),$(eval $(d)uninstall_dependencies += ${CONSTITUENT}uninstall)) 131 138 132 ${CONSTITUENT}uninstall : : $(${CONSTITUENT}uninstall_dependencies)$(cmt_local_${CONSTITUENT}_makefile)139 ${CONSTITUENT}uninstall : $(${CONSTITUENT}uninstall_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 133 140 $(echo) "(constituents.make) Starting uninstall ${CONSTITUENT}" 134 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 141 @if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 142 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall; \ 143 fi 144 # @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 135 145 $(echo) "(constituents.make) uninstall ${CONSTITUENT} done" 146 147 remove_library_links :: ${CONSTITUENT}uninstall 136 148 137 149 ifndef PEDANTIC -
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 -
CMT/HEAD/mgr/fragments/constituents_header
r488 r588 26 26 #cmt_final_setup = $(bin)$(package)setup.make 27 27 28 cmt_build_library_linksstamp = $(bin)cmt_build_library_links.stamp 28 29 #-------------------------------------------------------- 29 30 … … 73 74 74 75 ifndef QUICK 75 all :: build_library_links 76 $(echo) "(constituents.make) all done" 76 all :: build_library_links ; 77 else 78 all :: $(cmt_build_library_linksstamp) ; 77 79 endif 78 80 … … 88 90 # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi 89 91 90 requirements :91 @if test ! -r requirements ; then echo "No requirements file" ; fi92 #requirements : 93 # @if test ! -r requirements ; then echo "No requirements file" ; fi 92 94 93 95 build_library_links : dirs … … 97 99 # $(build_library_links) 98 100 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 99 106 makefiles : ; 100 107 108 ifndef PEDANTIC 101 109 .DEFAULT :: 110 #.DEFAULT : 102 111 $(echo) "(constituents.make) $@: No rule for such target" >&2 103 # @echo "#CMT> Warning: $@: Using default commands" >&2; exit 112 endif 104 113 105 # @if test "$@" = "$(cmt_lock_setup)"; then \ 106 # /bin/rm -f $(cmt_lock_setup); \ 107 # touch $(cmt_lock_setup); \ 108 #fi 114 ${CMTROOT}/src/Makefile.core : ; 115 ifdef use_requirements 116 $(use_requirements) : ; 117 endif 109 118 110 119 #-- end of constituents_header ------ -
CMT/HEAD/mgr/fragments/constituents_trailer
r487 r588 1 1 #-- start of constituents_trailer ------ 2 2 3 clean :: remove_library_links 3 uninstall : remove_library_links ; 4 clean :: 5 $(cleanup_echo) $(cmt_build_library_linksstamp) 6 -$(cleanup_silent) \rm -f $(cmt_build_library_linksstamp) 7 #clean :: remove_library_links 4 8 5 9 remove_library_links :: 10 ifndef QUICK 6 11 $(echo) "(constituents.make) Removing library links"; \ 7 12 $(remove_library_links) 13 else 14 $(echo) "(constituents.make) Removing library links"; \ 15 $(remove_library_links) -f=$(bin)library_links.in -without_cmt 16 endif 8 17 9 18 makefilesclean :: … … 15 24 clean :: makefilesclean 16 25 17 binclean :: clean18 $(echo) "(constituents.make) Removing binary directory $(bin)"19 @if test ! "$(bin)" = "./"; then \20 /bin/rm -rf $(bin); \21 fi22 23 26 #-- end of constituents_trailer ------ -
CMT/HEAD/mgr/fragments/cpp
r487 r588 20 20 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 21 21 22 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 23 22 24 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) 23 25 endif -
CMT/HEAD/mgr/fragments/cpp_library
r487 r588 20 20 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 21 21 22 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 23 22 24 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) 23 25 endif -
CMT/HEAD/mgr/fragments/dependencies
r548 r588 1 #-- start of dependenc y------------------1 #-- start of dependencies ------------------ 2 2 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 3 3 ifneq ($(MAKECMDGOALS),uninstall) 4 4 5 #$(bin)${CONSTITUENT}_dependencies.make :: dirs 6 7 ifndef QUICK 8 $(bin)${CONSTITUENT}_dependencies.make : ${LINE} $(use_requirements) $(cmt_final_setup_${CONSTITUENT}) 9 else 10 $(bin)${CONSTITUENT}_dependencies.make : 11 endif 5 $(bin)${CONSTITUENT}_dependencies.make : $(use_requirements) $(cmt_final_setup_${CONSTITUENT}) 12 6 $(echo) "(${CONSTITUENT}.make) Rebuilding $@"; \ 13 $(build_dependencies) ${CONSTITUENT} -all_sources -out=$@ ${LINE} 14 15 #$(${CONSTITUENT}_dependencies) 7 $(build_dependencies) -out=$@ -start_all ${LINE} -end_all $(includes) $(app_${CONSTITUENT}_cppflags) $(lib_${CONSTITUENT}_cppflags) ${CONSTITUENT} $? -f=$(cmt_dependencies_in_${CONSTITUENT}) -without_cmt 16 8 17 9 -include $(bin)${CONSTITUENT}_dependencies.make … … 19 11 endif 20 12 endif 21 #-- end of dependenc y-------------------13 #-- end of dependencies ------------------- -
CMT/HEAD/mgr/fragments/fortran
r469 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) -
CMT/HEAD/mgr/fragments/fortran_library
r469 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) -
CMT/HEAD/mgr/fragments/lex
r436 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) -
CMT/HEAD/mgr/fragments/lex_library
r436 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) -
CMT/HEAD/mgr/fragments/make_header
r487 r588 46 46 47 47 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.make 48 cmt_dependencies_in_${CONSTITUENT} = $(bin)dependencies_${CONSTITUENT}.in 48 49 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 49 50 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make … … 52 53 53 54 cmt_final_setup_${CONSTITUENT} = $(bin)setup.make 55 cmt_dependencies_in_${CONSTITUENT} = $(bin)dependencies.in 54 56 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 55 57 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make … … 83 85 endif 84 86 87 ${CMTROOT}/src/Makefile.core : ; 85 88 ifdef use_requirements 86 89 $(use_requirements) : ; -
CMT/HEAD/mgr/fragments/yacc
r436 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies) -
CMT/HEAD/mgr/fragments/yacc_library
r436 r588 2 2 3 3 $(bin)${CONSTITUENT}_dependencies.make : $(${NAME}_${FILESUFFIX}_dependencies) 4 5 $(bin)${CONSTITUENT}_dependencies.make : ${FULLNAME} 4 6 5 7 $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.o : $(${NAME}_${FILESUFFIX}_dependencies)
Note: See TracChangeset
for help on using the changeset viewer.