Changeset 487
- Timestamp:
- Jan 8, 2009, 11:23:36 AM (15 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 1 added
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r486 r487 1 2009-01-08 <rybkin@lal.in2p3.fr> 382 2 3 * source/cmt_parser.cxx: In function Cmt::do_show_groups, ensure that the 4 constituents are parsed so that command "cmt show groups" is functional 5 * src/Makefile.header: Make the READONLY mode obsolete (the relocation 6 of the binary build directory provides this functionality as well). 7 Change the name of the file recording the setup to $(bin)setup.make and 8 generate it here. Do not specify the first, config targets. Add the 9 uninstall targets to the help message 10 * mgr/fragments/constituents_header: Make the READONLY mode obsolete. 11 Change the name of the file recording the setup to $(bin)setup.make and 12 do not generate it here. Remove the first, config, checkuses targets 13 * mgr/fragments/constituent: Make the READONLY mode obsolete. 14 Change the names of the files recording the setup to $(bin)setup.make and 15 $(bin)setup_${CONSTITUENT}.make, do not override the latter when identical 16 (see C.L. 233). Make $(cmt_local_${CONSTITUENT}_makefile) only depend on 17 $(cmt_local_tagfile_${CONSTITUENT}). Make ${CONSTITUENT}clean also depend 18 on $(cmt_local_${CONSTITUENT}_makefile) 19 * mgr/fragments/constituent_lock: idem 20 * mgr/fragments/make_header: Make the READONLY mode obsolete. 21 Change the names of the files recording the setup to $(bin)setup.make and 22 $(bin)setup_${CONSTITUENT}.make. Add a rule with an empty command for 23 $(use_requirements) for optimisation. 24 * mgr/fragments/cmt_action_runner_header: Improve control of Make verbosity 25 * mgr/fragments/protos_header: idem 26 * mgr/fragments/buildproto: idem 27 * mgr/fragments/cleanup_objects: Clean up per object file dependencies 28 files and stamps 29 * mgr/fragments/library: idem 30 * mgr/fragments/library_no_share: idem 31 * mgr/fragments/library_no_static: idem 32 * mgr/fragments/dependencies: Do not include dependencies fragment in the 33 constituent makefile when "make uninstall" is run 34 * mgr/fragments/c: idem 35 * mgr/fragments/c_library: idem 36 * mgr/fragments/cpp: idem 37 * mgr/fragments/cpp_library: idem 38 * mgr/fragments/cleanup_library: Fix for the clean command 39 * mgr/fragments/check_application_header: Improve control of Make verbosity, 40 make ${CONSTITUENT}check depend on $(cmt_local_${CONSTITUENT}_makefile) 41 * mgr/fragments/check_application: Specify the application path when 42 running it (so that the command does not fail if . is not in the PATH) 43 * mgr/fragments/constituents_trailer: Minor change to diognostic messages 44 * mgr/fragments/cleanup_application: idem 45 * mgr/fragments/cleanup_header: Replace cd . with an empty command 46 * mgr/cmt_uninstall_action.sh: Ensure that dangling symbolic links can be 47 uninstalled 48 * src/NMakefile.header: Improve the help message, make it the same as for UNix-like 49 systems. In the QUICK mode, generate $(cmt_constituents_makefile) if non-existent 50 * mgr/fragments/nmake/constituents_header: Do not override the $(bin)setup.nmake 51 when identical (see C.L. 233). In the QUICK mode, generate $(cmt_local_tagfile) 52 if non-existent. Add diagnostic messages 53 * mgr/fragments/nmake/constituent: Change the names of the files recording 54 the setup to $(bin)setup.nmake and $(bin)setup_${CONSTITUENT}.nmake, do not 55 override the latter when identical (see C.L. 233). 56 Make $(cmt_local_${CONSTITUENT}_makefile) only depend on 57 $(cmt_local_tagfile_${CONSTITUENT}). Make ${CONSTITUENT}clean also depend 58 on $(cmt_local_${CONSTITUENT}_makefile). 59 In the QUICK mode, generate $(cmt_local_tagfile_${CONSTITUENT}) if non-existent 60 * mgr/fragments/nmake/constituent_lock: idem 61 * mgr/fragments/nmake/cmt_action_runner_header: Improve control of Make verbosity 62 * mgr/fragments/nmake/protos_header: idem 63 * mgr/fragments/nmake/buildproto: Introduce NMake version of the file 64 * mgr/fragments/nmake/cpp: Fix a typo 65 * mgr/fragments/nmake/cpp_library: idem 66 * mgr/fragments/nmake/c: idem 67 * mgr/fragments/nmake/c_library: idem 68 * mgr/fragments/nmake/application: Remove the connection between clean and 69 uninstall targets - same as the for Unix-like systems (see C.L. 246) 70 * mgr/fragments/nmake/library: idem 71 * mgr/fragments/nmake/library_no_share: idem 72 * mgr/fragments/nmake/library_no_static: idem 73 * mgr/fragments/nmake/jar: idem 74 * mgr/fragments/nmake/java_header: idem 75 * mgr/fragments/nmake/install_includes_header: idem 76 * mgr/fragments/nmake/dependencies: Do not attempt to include the dependencies 77 file if non-existent 78 * mgr/fragments/nmake/group: Make ${GROUP} also depend on 79 $(${GROUP}_dependencies) 80 * mgr/fragments/nmake/check_application_header: Improve control of Make verbosity, 81 make ${CONSTITUENT}check depend on $(cmt_local_${CONSTITUENT}_makefile) 82 * mgr/fragments/nmake/make_header: Change the names of the files recording the 83 setup to $(bin)setup.nmake and $(bin)setup_${CONSTITUENT}.nmake. Add a rule with 84 an empty command for $(use_requirements) for optimisation 85 * mgr/fragments/nmake/constituents_trailer: Remove the connection between 86 binclean and clean targets to make the former a fast removal of $(bin) 87 * mgr/fragments/nmake/cleanup_header: Add a clean target dependent on 88 ${CONSTITUENT}clean 89 1 90 2008-12-17 <rybkin@lal.in2p3.fr> 381 2 91 -
CMT/HEAD/mgr/cmt_uninstall_action.sh
r446 r487 122 122 fi 123 123 124 if test -d ${dest_file_path}; then 124 if test -L ${dest_file_path}; then 125 126 if test "${cmtmsg}"; then 127 echo "${CMTMSGPREFIX}" removing symbolic link ${file_name} from ${install_dir} 128 fi 129 if test "${makecmd}"; then set -v; fi 130 /bin/rm -f ${dest_file_path} 131 if test "${makecmd}"; then set +v; fi 132 133 elif test -d ${dest_file_path}; then 134 125 135 if test "${cmtmsg}"; then 126 136 echo "${CMTMSGPREFIX}" removing directory ${file_name} from ${install_dir} … … 129 139 /bin/rm -rf ${dest_file_path} 130 140 if test "${makecmd}"; then set +v; fi 141 131 142 elif test -f ${dest_file_path}; then 143 132 144 if test "${cmtmsg}"; then 133 145 echo "${CMTMSGPREFIX}" removing file ${file_name} from ${install_dir} … … 136 148 /bin/rm -f ${dest_file_path} 137 149 if test "${makecmd}"; then set +v; fi 150 138 151 fi 139 152 -
CMT/HEAD/mgr/fragments/buildproto
r11 r487 2 2 3 3 $(inc)${NAME}.pp : ${FILEPATH}${FILENAME} 4 @echo"Now rebuilding $@"5 @cd $(inc); $(build_prototype) ${FILEPATH}${FILENAME} >/dev/null6 @cat /dev/null >$(inc)${NAME}.pp4 $(echo) "Now rebuilding $@" 5 cd $(inc); $(build_prototype) ${FILEPATH}${FILENAME} >/dev/null 6 cat /dev/null >$(inc)${NAME}.pp 7 7 8 8 #-- end of buildproto -
CMT/HEAD/mgr/fragments/c
r483 r487 4 4 5 5 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 6 ifneq ($(MAKECMDGOALS),uninstall) 6 7 -include $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.d 7 8 … … 12 13 $(c_silent) $(ccomp) ${DEPENDENCIESOPTS} -o $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(app_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(app_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} ${FULLNAME} 13 14 $(c_silent) $(format_dependencies) $@ $(@D)/${NAME}${CONSTITUENTSUFFIX}.o ${FULLNAME} $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep 15 endif 14 16 endif 15 17 -
CMT/HEAD/mgr/fragments/c_library
r483 r487 4 4 5 5 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 6 ifneq ($(MAKECMDGOALS),uninstall) 6 7 -include $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.d 7 8 … … 12 13 $(c_silent) $(ccomp) ${DEPENDENCIESOPTS} -o $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep $(use_pp_cflags) $(${CONSTITUENT}_pp_cflags) $(lib_${CONSTITUENT}_pp_cflags) $(${NAME}_pp_cflags) $(use_cflags) $(${CONSTITUENT}_cflags) $(lib_${CONSTITUENT}_cflags) $(${NAME}_cflags) $(${NAME}_${FILESUFFIX}_cflags) ${ADDINCLUDE} ${FULLNAME} 13 14 $(c_silent) $(format_dependencies) $@ $(@D)/${NAME}${CONSTITUENTSUFFIX}.o ${FULLNAME} $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep 15 endif 14 16 endif 15 17 -
CMT/HEAD/mgr/fragments/check_application
r11 r487 4 4 5 5 ${CONSTITUENT}check :: ${CONSTITUENT} 6 cd $(bin); $(${CONSTITUENT}_pre_check) 7 cd $(bin); ${CONSTITUENT}${application_suffix} $(${CONSTITUENT}_check_args) 8 cd $(bin); $(${CONSTITUENT}_post_check) 6 $(${CONSTITUENT}_pre_check) 7 $(bin)${CONSTITUENT}${application_suffix} $(${CONSTITUENT}_check_args) 8 $(${CONSTITUENT}_post_check) 9 9 10 #-- end of check_application ------ -
CMT/HEAD/mgr/fragments/check_application_header
r459 r487 2 2 3 3 check :: ${CONSTITUENT}check 4 @echo "------> ${CONSTITUENT}check ok" 4 $(echo) "(constituents.make) ${CONSTITUENT}check ok" 5 # @echo "------> ${CONSTITUENT}check ok" 5 6 6 ${CONSTITUENT}check :: 7 @echo "------> starting ${CONSTITUENT}check" 8 @$(cmtexe) build constituent_makefile ${CONSTITUENT}; $(MAKE) -f ${CONSTITUENT}.make build_strategy=keep_makefiles ${CONSTITUENT}check 7 #${CONSTITUENT}check : ${CONSTITUENT} $(cmt_local_${CONSTITUENT}_makefile) 8 ${CONSTITUENT}check : $(cmt_local_${CONSTITUENT}_makefile) 9 $(echo) "(constituents.make) Starting $@" 10 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $@ 11 12 #${CONSTITUENT}check :: 13 # @echo "------> starting ${CONSTITUENT}check" 14 # @$(cmtexe) build constituent_makefile ${CONSTITUENT}; $(MAKE) -f ${CONSTITUENT}.make build_strategy=keep_makefiles ${CONSTITUENT}check 9 15 10 16 #-- end of check_application_header ------ -
CMT/HEAD/mgr/fragments/cleanup_application
r441 r487 1 1 #-- start of cleanup_application ------ 2 $(cleanup_echo) ${CONSTITUENT}${application_suffix}2 $(cleanup_echo) application ${CONSTITUENT} 3 3 -$(cleanup_silent) cd $(bin); /bin/rm -f ${CONSTITUENT}${application_suffix} 4 5 # @echo "------> (${CONSTITUENT}.make) Removing application files"6 4 #-- end of cleanup_application ------ -
CMT/HEAD/mgr/fragments/cleanup_header
r459 r487 1 1 #-- start of cleanup_header -------------- 2 2 3 clean :: ${CONSTITUENT}clean 4 @cd .3 clean :: ${CONSTITUENT}clean ; 4 # @cd . 5 5 6 6 ifndef PEDANTIC -
CMT/HEAD/mgr/fragments/cleanup_library
r204 r487 1 1 #-- start of cleanup_library ------------- 2 $(cleanup_echo) library 3 -$(cleanup_silent) cd $(bin); /bin/rm -f $( binobj)$(library_prefix)${CONSTITUENT}$(library_suffix).a $(binobj)$(library_prefix)${CONSTITUENT}$(library_suffix).s? $(binobj)${CONSTITUENT}.stamp $(binobj)${CONSTITUENT}.shstamp2 $(cleanup_echo) library ${CONSTITUENT} 3 -$(cleanup_silent) cd $(bin); /bin/rm -f $(library_prefix)${CONSTITUENT}$(library_suffix).a $(library_prefix)${CONSTITUENT}$(library_suffix).s? ${CONSTITUENT}.stamp ${CONSTITUENT}.shstamp 4 4 #-- end of cleanup_library --------------- 5 -
CMT/HEAD/mgr/fragments/cleanup_objects
r469 r487 1 1 #-- start of cleanup_objects ------ 2 $(cleanup_echo) objects 2 $(cleanup_echo) objects ${CONSTITUENT} 3 3 -$(cleanup_silent) /bin/rm -f ${OBJS} 4 -$(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS}) 4 5 -$(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make 5 6 #-- end of cleanup_objects ------ -
CMT/HEAD/mgr/fragments/cmt_action_runner_header
r79 r487 7 7 ifdef ${CONSTITUENT}_once 8 8 9 ${CONSTITUENT}actionstamp = ${CONSTITUENT}.actionstamp 9 ${CONSTITUENT}actionstamp = $(bin)${CONSTITUENT}.actionstamp 10 #${CONSTITUENT}actionstamp = ${CONSTITUENT}.actionstamp 10 11 11 12 ${CONSTITUENT} :: $(${CONSTITUENT}actionstamp) 12 @echo ${CONSTITUENT} ok 13 $(echo) "${CONSTITUENT} ok" 14 # @echo ${CONSTITUENT} ok 13 15 14 16 $(${CONSTITUENT}actionstamp) :: $(${CONSTITUENT}_dependencies) 15 17 $(silent) ${action_value} 16 @echo ok > $(${CONSTITUENT}actionstamp) 18 $(silent) cat /dev/null > $(${CONSTITUENT}actionstamp) 19 # @echo ok > $(${CONSTITUENT}actionstamp) 17 20 18 21 ${CONSTITUENT}clean :: 19 @/bin/rm -f $(${CONSTITUENT}actionstamp)22 $(cleanup_silent) /bin/rm -f $(${CONSTITUENT}actionstamp) 20 23 21 24 else -
CMT/HEAD/mgr/fragments/constituent
r483 r487 7 7 ifdef cmt_${CONSTITUENT}_has_target_tag 8 8 9 ifdef READONLY10 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)11 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make12 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make13 else14 9 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make 15 10 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.make 16 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 11 cmt_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}$$$$.make 12 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.make 13 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 17 14 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 18 endif19 15 20 16 ${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT} … … 26 22 $(cmt_local_tagfile_${CONSTITUENT}) : 27 23 endif 28 $(echo) "(constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})" 29 @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \ 30 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \ 31 if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \ 32 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT}) 33 $(echo) setup.make ok 24 $(echo) "(constituents.make) Rebuilding $@"; \ 25 if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \ 26 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}) 27 $(echo) "(constituents.make) Rebuilding $(cmt_final_setup_${CONSTITUENT})"; \ 28 test ! -f $(cmt_local_setup_${CONSTITUENT}) || \rm -f $(cmt_local_setup_${CONSTITUENT}); \ 29 trap '\rm -f $(cmt_local_setup_${CONSTITUENT})' 0 1 2 15; \ 30 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT}) && \ 31 if [ -f $(cmt_final_setup_${CONSTITUENT}) ] && \ 32 \cmp -s $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}); then \ 33 \rm $(cmt_local_setup_${CONSTITUENT}); else \ 34 \mv -f $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}); fi 34 35 35 36 else 36 37 37 ifdef READONLY38 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)39 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make40 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make41 else42 38 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make 43 39 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).make 44 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 40 cmt_final_setup_${CONSTITUENT} = $(bin)setup.make 41 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 45 42 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 46 endif47 43 48 44 endif 49 45 50 ifndef QUICK51 46 ifdef STRUCTURED_OUTPUT 52 ${CONSTITUENT}dirs ::47 ${CONSTITUENT}dirs : 53 48 @if test ! -d $(bin)${CONSTITUENT}; then $(mkdir) -p $(bin)${CONSTITUENT}; fi 54 49 $(echo) "STRUCTURED_OUTPUT="$(bin)${CONSTITUENT} 50 else 51 ${CONSTITUENT}dirs : ; 52 endif 55 53 56 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs ${CONSTITUENT}dirs 57 else 58 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs 59 endif 60 else 61 $(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 62 endif 54 #ifndef QUICK 55 #ifdef STRUCTURED_OUTPUT 56 # ${CONSTITUENT}dirs :: 57 # @if test ! -d $(bin)${CONSTITUENT}; then $(mkdir) -p $(bin)${CONSTITUENT}; fi 58 # $(echo) "STRUCTURED_OUTPUT="$(bin)${CONSTITUENT} 59 # 60 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs ${CONSTITUENT}dirs 61 #else 62 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs 63 #endif 64 #else 65 #$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 66 #endif 67 68 $(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT}) 63 69 $(echo) "(constituents.make) Building ${CONSTITUENT}.make"; \ 64 70 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 65 71 66 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 72 ifndef QUICK 73 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) build_library_links dirs ${CONSTITUENT}dirs 74 else 75 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs ${CONSTITUENT}dirs 76 endif 67 77 $(echo) "(constituents.make) Starting ${CONSTITUENT}" 68 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}${CONSTITUENT}78 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 69 79 $(echo) "(constituents.make) ${CONSTITUENT} done" 70 80 71 81 clean :: ${CONSTITUENT}clean 72 82 73 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)83 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 74 84 $(echo) "(constituents.make) Starting ${CONSTITUENT}clean" 75 @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 76 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \ 77 fi 85 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}clean 86 $(echo) "(constituents.make) ${CONSTITUENT}clean done" 87 # @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 88 # $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \ 89 # fi 78 90 79 91 ## /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make … … 83 95 ${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 84 96 $(echo) "(constituents.make) Starting install ${CONSTITUENT}" 85 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}install97 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) install 86 98 $(echo) "(constituents.make) install ${CONSTITUENT} done" 87 99 … … 90 102 ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile) 91 103 $(echo) "(constituents.make) Starting uninstall ${CONSTITUENT}" 92 @ -$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}uninstall104 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 93 105 $(echo) "(constituents.make) uninstall ${CONSTITUENT} done" 94 106 … … 100 112 endif 101 113 102 103 114 #-- end of constituent ------ -
CMT/HEAD/mgr/fragments/constituent_lock
r483 r487 7 7 ifdef cmt_${CONSTITUENT}_has_target_tag 8 8 9 ifdef READONLY10 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)11 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make12 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make13 else14 9 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make 15 10 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.make 16 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 11 cmt_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}$$$$.make 12 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.make 13 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 17 14 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 18 endif19 15 20 16 ${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT} … … 26 22 $(cmt_local_tagfile_${CONSTITUENT}) : 27 23 endif 28 $(echo) "(constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})" 29 @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \ 30 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \ 31 if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \ 32 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT}) 33 $(echo) setup.make ok 24 $(echo) "(constituents.make) Rebuilding $@"; \ 25 if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \ 26 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}) 27 $(echo) "(constituents.make) Rebuilding $(cmt_final_setup_${CONSTITUENT})"; \ 28 test ! -f $(cmt_local_setup_${CONSTITUENT}) || \rm -f $(cmt_local_setup_${CONSTITUENT}); \ 29 trap '\rm -f $(cmt_local_setup_${CONSTITUENT})' 0 1 2 15; \ 30 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT}) && \ 31 if [ -f $(cmt_final_setup_${CONSTITUENT}) ] && \ 32 \cmp -s $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}); then \ 33 \rm $(cmt_local_setup_${CONSTITUENT}); else \ 34 \mv -f $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}); fi 34 35 35 36 else 36 37 37 ifdef READONLY38 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)39 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make40 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make41 else42 38 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make 43 39 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).make 44 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 40 cmt_final_setup_${CONSTITUENT} = $(bin)setup.make 41 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 45 42 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 46 endif47 43 48 44 endif 49 45 50 ifndef QUICK51 46 ifdef STRUCTURED_OUTPUT 52 ${CONSTITUENT}dirs : :47 ${CONSTITUENT}dirs : 53 48 @if test ! -d $(bin)${CONSTITUENT}; then $(mkdir) -p $(bin)${CONSTITUENT}; fi 54 49 $(echo) "STRUCTURED_OUTPUT="$(bin)${CONSTITUENT} 50 else 51 ${CONSTITUENT}dirs : ; 52 endif 55 53 56 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs ${CONSTITUENT}dirs 57 else 58 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs 59 endif 60 else 61 $(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 62 endif 54 #ifndef QUICK 55 #ifdef STRUCTURED_OUTPUT 56 # ${CONSTITUENT}dirs :: 57 # @if test ! -d $(bin)${CONSTITUENT}; then $(mkdir) -p $(bin)${CONSTITUENT}; fi 58 # $(echo) "STRUCTURED_OUTPUT="$(bin)${CONSTITUENT} 59 # 60 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs ${CONSTITUENT}dirs 61 #else 62 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs 63 #endif 64 #else 65 #$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 66 #endif 67 68 $(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT}) 63 69 $(echo) "(constituents.make) Building ${CONSTITUENT}.make"; \ 64 70 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 65 71 66 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 72 ifndef QUICK 73 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) build_library_links dirs ${CONSTITUENT}dirs 74 else 75 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs ${CONSTITUENT}dirs 76 endif 67 77 $(echo) "(constituents.make) Creating ${CONSTITUENT}${lock_suffix} and Starting ${CONSTITUENT}" 68 78 @${lock_command} ${CONSTITUENT}${lock_suffix} || exit $$?; \ 69 79 retval=$$?; \ 70 80 trap '${unlock_command} ${CONSTITUENT}${lock_suffix}; exit $${retval}' 1 2 15; \ 71 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}${CONSTITUENT}; \81 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}; \ 72 82 retval=$$?; ${unlock_command} ${CONSTITUENT}${lock_suffix}; exit $${retval} 73 83 $(echo) "(constituents.make) ${CONSTITUENT} done" … … 75 85 clean :: ${CONSTITUENT}clean 76 86 77 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)87 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 78 88 $(echo) "(constituents.make) Starting ${CONSTITUENT}clean" 79 @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 80 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \ 81 fi 89 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}clean 90 $(echo) "(constituents.make) ${CONSTITUENT}clean done" 91 # @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ 92 # $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \ 93 # fi 82 94 83 95 ## /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make … … 87 99 ${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 88 100 $(echo) "(constituents.make) Starting install ${CONSTITUENT}" 89 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}install101 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) install 90 102 $(echo) "(constituents.make) install ${CONSTITUENT} done" 91 103 … … 94 106 ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile) 95 107 $(echo) "(constituents.make) Starting uninstall ${CONSTITUENT}" 96 @ -$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid}uninstall108 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) uninstall 97 109 $(echo) "(constituents.make) uninstall ${CONSTITUENT} done" 98 110 … … 104 116 endif 105 117 106 107 118 #-- end of constituent_lock ------ -
CMT/HEAD/mgr/fragments/constituents_header
r459 r487 14 14 ${PACKAGE}_tag = $(tag) 15 15 16 ifdef READONLY17 cmt_local_tagfile = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)18 else19 16 #cmt_local_tagfile = $(${PACKAGE}_tag).make 20 17 cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).make 21 endif22 18 23 19 #-include $(cmt_local_tagfile) 24 20 include $(cmt_local_tagfile) 25 21 26 ifdef READONLY 27 cmt_local_setup = /tmp/CMT_${PACKAGE}setup$(cmt_lock_pid).make 28 cmt_final_setup = /tmp/CMT_${PACKAGE}setup.make 29 else 30 #cmt_local_setup = $(bin)${PACKAGE}setup$(cmt_lock_pid).make 31 cmt_local_setup = $(bin)$(package)setup$$$$.make 22 #cmt_local_setup = $(bin)setup$$$$.make 23 #cmt_local_setup = $(bin)$(package)setup$$$$.make 32 24 #cmt_final_setup = $(bin)${PACKAGE}setup.make 33 cmt_final_setup = $(bin) $(package)setup.make34 endif 25 cmt_final_setup = $(bin)setup.make 26 #cmt_final_setup = $(bin)$(package)setup.make 35 27 36 28 #-------------------------------------------------------- … … 41 33 #first :: $(cmt_local_tagfile) 42 34 # @echo $(cmt_local_tagfile) ok 43 ifndef QUICK44 first :: $(cmt_final_setup) ;45 else46 first :: ;47 endif35 #ifndef QUICK 36 #first :: $(cmt_final_setup) ; 37 #else 38 #first :: ; 39 #endif 48 40 49 41 ## @bin=`$(cmtexe) show macro_value bin` … … 51 43 #$(cmt_local_tagfile) : $(cmt_lock_setup) 52 44 # @echo "#CMT> Error: $@: No such file" >&2; exit 1 53 $(cmt_local_tagfile) :54 @echo "#CMT> Warning: $@: No such file" >&2; exit45 #$(cmt_local_tagfile) : 46 # @echo "#CMT> Warning: $@: No such file" >&2; exit 55 47 # @echo "#CMT> Info: $@: No need to rebuild file" >&2; exit 56 48 57 $(cmt_final_setup) : $(cmt_local_tagfile)58 $(echo) "(constituents.make) Rebuilding $@"59 @if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \60 if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \61 trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \62 $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \63 if test ! -f $@; then \64 mv $(cmt_local_setup) $@; \65 else \66 if /usr/bin/diff $(cmt_local_setup) $@ >/dev/null ; then \67 : ; \68 else \69 mv $(cmt_local_setup) $@; \70 fi; \71 fi49 #$(cmt_final_setup) : $(cmt_local_tagfile) 50 # $(echo) "(constituents.make) Rebuilding $@" 51 # @if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \ 52 # if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \ 53 # trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \ 54 # $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \ 55 # if test ! -f $@; then \ 56 # mv $(cmt_local_setup) $@; \ 57 # else \ 58 # if /usr/bin/diff $(cmt_local_setup) $@ >/dev/null ; then \ 59 # : ; \ 60 # else \ 61 # mv $(cmt_local_setup) $@; \ 62 # fi; \ 63 # fi 72 64 73 65 # @/bin/echo $@ ok 74 66 75 config :: checkuses76 @exit 077 checkuses : ;67 #config :: checkuses 68 # @exit 0 69 #checkuses : ; 78 70 79 71 env.make :: … … 91 83 @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi 92 84 93 dirs :: 94 @if test ! -r requirements ; then echo "No requirements file" ; fi; \ 95 if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi 85 dirs :: requirements 86 @if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi 87 # @if test ! -r requirements ; then echo "No requirements file" ; fi; \ 88 # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi 96 89 97 build_library_links : dirs requirements 90 requirements : 91 @if test ! -r requirements ; then echo "No requirements file" ; fi 92 93 build_library_links : dirs 98 94 $(echo) "(constituents.make) Rebuilding library links"; \ 99 if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ 100 $(build_library_links) 95 $(build_library_links) 96 # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ 97 # $(build_library_links) 101 98 102 99 .DEFAULT :: -
CMT/HEAD/mgr/fragments/constituents_trailer
r441 r487 4 4 5 5 remove_library_links :: 6 $(echo) " Removing library links"; \6 $(echo) "(constituents.make) Removing library links"; \ 7 7 $(remove_library_links) 8 8 … … 16 16 17 17 binclean :: clean 18 $(echo) " Removing binary directory $(bin)"18 $(echo) "(constituents.make) Removing binary directory $(bin)" 19 19 @if test ! "$(bin)" = "./"; then \ 20 20 /bin/rm -rf $(bin); \ -
CMT/HEAD/mgr/fragments/cpp
r483 r487 4 4 5 5 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 6 ifneq ($(MAKECMDGOALS),uninstall) 6 7 -include $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.d 7 8 … … 12 13 $(cpp_silent) $(cppcomp) ${DEPENDENCIESOPTS} -o $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep $(use_pp_cppflags) $(${CONSTITUENT}_pp_cppflags) $(app_${CONSTITUENT}_pp_cppflags) $(${NAME}_pp_cppflags) $(use_cppflags) $(${CONSTITUENT}_cppflags) $(app_${CONSTITUENT}_cppflags) $(${NAME}_cppflags) $(${NAME}_${FILESUFFIX}_cppflags) ${ADDINCLUDE} ${FULLNAME} 13 14 $(cpp_silent) $(format_dependencies) $@ $(@D)/${NAME}${CONSTITUENTSUFFIX}.o ${FULLNAME} $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep 15 endif 14 16 endif 15 17 -
CMT/HEAD/mgr/fragments/cpp_library
r483 r487 4 4 5 5 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 6 ifneq ($(MAKECMDGOALS),uninstall) 6 7 -include $(bin)$(binobj)${NAME}${CONSTITUENTSUFFIX}.d 7 8 … … 12 13 $(cpp_silent) $(cppcomp) ${DEPENDENCIESOPTS} -o $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep $(use_pp_cppflags) $(${CONSTITUENT}_pp_cppflags) $(lib_${CONSTITUENT}_pp_cppflags) $(${NAME}_pp_cppflags) $(use_cppflags) $(${CONSTITUENT}_cppflags) $(lib_${CONSTITUENT}_cppflags) $(${NAME}_cppflags) $(${NAME}_${FILESUFFIX}_cppflags) ${ADDINCLUDE} ${FULLNAME} 13 14 $(cpp_silent) $(format_dependencies) $@ $(@D)/${NAME}${CONSTITUENTSUFFIX}.o ${FULLNAME} $(@D)/${NAME}${CONSTITUENTSUFFIX}.dep 15 endif 14 16 endif 15 17 -
CMT/HEAD/mgr/fragments/dependencies
r474 r487 1 1 #-- start of dependency ------------------ 2 2 ifneq ($(MAKECMDGOALS),${CONSTITUENT}clean) 3 ifneq ($(MAKECMDGOALS),uninstall) 3 4 4 5 #$(bin)${CONSTITUENT}_dependencies.make :: dirs … … 15 16 16 17 endif 18 endif 17 19 #-- end of dependency ------------------- -
CMT/HEAD/mgr/fragments/library
r469 r487 34 34 35 35 ${CONSTITUENT}clean :: 36 $(cleanup_echo) objects 36 $(cleanup_echo) objects ${CONSTITUENT} 37 37 $(cleanup_silent) /bin/rm -f ${OBJS} 38 $(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS}) 38 39 $(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make 39 40 -
CMT/HEAD/mgr/fragments/library_no_share
r469 r487 61 61 62 62 ${CONSTITUENT}clean :: 63 $(cleanup_echo) ${OBJS}63 $(cleanup_echo) objects ${CONSTITUENT} 64 64 $(cleanup_silent) /bin/rm -f ${OBJS} 65 $(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS}) 66 $(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make 67 # $(cleanup_echo) ${OBJS} 68 # $(cleanup_silent) /bin/rm -f ${OBJS} 65 69 66 70 #-- end of library_no_share ------ -
CMT/HEAD/mgr/fragments/library_no_static
r469 r487 36 36 37 37 ${CONSTITUENT}clean :: 38 $(cleanup_echo) objects 38 $(cleanup_echo) objects ${CONSTITUENT} 39 39 $(cleanup_silent) /bin/rm -f ${OBJS} 40 $(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS}) 40 41 $(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make 41 42 -
CMT/HEAD/mgr/fragments/make_header
r483 r487 26 26 ${PACKAGE}_tag = $(tag) 27 27 28 ifdef READONLY29 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)30 else31 28 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make 32 29 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.make 33 endif34 30 35 31 else … … 39 35 ${PACKAGE}_tag = $(tag) 40 36 41 ifdef READONLY42 cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)43 else44 37 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make 45 38 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).make 46 endif47 39 48 40 endif 49 41 50 -include $(cmt_local_tagfile_${CONSTITUENT}) 42 include $(cmt_local_tagfile_${CONSTITUENT}) 43 #-include $(cmt_local_tagfile_${CONSTITUENT}) 51 44 52 45 ifdef cmt_${CONSTITUENT}_has_target_tag 53 46 54 ifdef READONLY 55 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make 56 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make 57 else 58 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 47 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.make 48 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make 59 49 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 60 endif61 50 62 51 else 63 52 64 ifdef READONLY 65 cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make 66 cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make 67 else 68 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 53 cmt_final_setup_${CONSTITUENT} = $(bin)setup.make 54 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make 69 55 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 70 endif71 56 72 57 endif 73 58 74 ifdef READONLY 75 cmt_final_setup = /tmp/CMT_${PACKAGE}setup.make 76 else 77 cmt_final_setup = $(bin)${PACKAGE}setup.make 78 endif 59 cmt_final_setup = $(bin)setup.make 60 #cmt_final_setup = $(bin)${PACKAGE}setup.make 79 61 80 ${CONSTITUENT} :: 81 82 83 ifdef READONLY 84 ${CONSTITUENT} :: 85 @echo tags=$(tags) 86 @echo cmt_local_tagfile=$(cmt_local_tagfile) 87 endif 88 62 #${CONSTITUENT} :: ; 89 63 90 64 dirs :: … … 109 83 endif 110 84 85 ifdef use_requirements 86 $(use_requirements) : ; 87 endif 88 111 89 #-- end of make_header ------------------ 112 -
CMT/HEAD/mgr/fragments/nmake/application
r484 r487 30 30 !endif 31 31 32 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall32 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 33 33 34 34 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/c
r483 r487 3 3 !if "${DEPENDENCIESOPTS}" != "" 4 4 5 !if exist s($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d)5 !if exist ($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d) 6 6 !include $(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d 7 7 !endif -
CMT/HEAD/mgr/fragments/nmake/c_library
r483 r487 3 3 !if "${DEPENDENCIESOPTS}" != "" 4 4 5 !if exist s($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d)5 !if exist ($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d) 6 6 !include $(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d 7 7 !endif -
CMT/HEAD/mgr/fragments/nmake/check_application_header
r459 r487 1 #-- start of check_application_header ------ 1 2 2 3 check :: ${CONSTITUENT}check 3 @echo "------> ${CONSTITUENT}check ok" 4 $(echo) "(constituents.nmake) ${CONSTITUENT}check ok" 5 # @echo "------> ${CONSTITUENT}check ok" 4 6 5 ${CONSTITUENT}check :: 6 @echo "------> starting ${CONSTITUENT}check" 7 @$(cmtexe) build -nmake constituent_makefile ${CONSTITUENT}8 $(MAKE) /f ${CONSTITUENT}.nmake build_strategy=keep_makefiles ${CONSTITUENT}check7 #${CONSTITUENT}check : ${CONSTITUENT} $(cmt_local_${CONSTITUENT}_makefile) 8 ${CONSTITUENT}check : $(cmt_local_${CONSTITUENT}_makefile) 9 $(echo) "(constituents.nmake) Starting $@" 10 @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles $@ tag=$(tag) 9 11 12 #${CONSTITUENT}check :: 13 # @echo "------> starting ${CONSTITUENT}check" 14 # @$(cmtexe) build -nmake constituent_makefile ${CONSTITUENT} 15 # $(MAKE) /f ${CONSTITUENT}.nmake build_strategy=keep_makefiles ${CONSTITUENT}check 16 17 #-- end of check_application_header ------ -
CMT/HEAD/mgr/fragments/nmake/cleanup_header
r11 r487 1 2 clean :: ${CONSTITUENT}clean ; 1 3 2 4 ${CONSTITUENT}clean :: -
CMT/HEAD/mgr/fragments/nmake/cmt_action_runner_header
r337 r487 7 7 !if defined (${CONSTITUENT}_once) 8 8 9 ${CONSTITUENT}actionstamp = ${CONSTITUENT}.actionstamp 9 ${CONSTITUENT}actionstamp = $(bin)${CONSTITUENT}.actionstamp 10 #${CONSTITUENT}actionstamp = ${CONSTITUENT}.actionstamp 10 11 11 12 ${CONSTITUENT} :: $(${CONSTITUENT}actionstamp) 12 @echo ${CONSTITUENT} ok 13 $(echo) "${CONSTITUENT} ok" 14 # @echo ${CONSTITUENT} ok 13 15 14 16 #-- $(${CONSTITUENT}_dependencies) 15 17 $(${CONSTITUENT}actionstamp) :: 16 18 $(silent) ${action_value} 17 @echo ok > $(${CONSTITUENT}actionstamp) 19 $(silent) type nul > $(${CONSTITUENT}actionstamp) 20 # @echo ok > $(${CONSTITUENT}actionstamp) 18 21 19 22 ${CONSTITUENT}clean :: 20 @if exist $(${CONSTITUENT}actionstamp) del $(${CONSTITUENT}actionstamp) 23 $(cleanup_silent)if exist $(${CONSTITUENT}actionstamp) del $(${CONSTITUENT}actionstamp) 24 # @if exist $(${CONSTITUENT}actionstamp) del $(${CONSTITUENT}actionstamp) 21 25 22 26 !else -
CMT/HEAD/mgr/fragments/nmake/constituent
r473 r487 9 9 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake 10 10 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake 11 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake 11 cmt_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake.tmp 12 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake 13 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake 12 14 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake 13 15 … … 17 19 !endif 18 20 19 !if "$(QUICK)" == "" 21 !if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile_${CONSTITUENT})) 20 22 23 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile_${CONSTITUENT})] == 0 24 !endif 21 25 !if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0 22 26 !endif 23 27 24 !if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0 28 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup_${CONSTITUENT})] == 0 29 !endif 30 !if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT})] == 0 31 !endif 32 33 !if exist ($(cmt_final_setup_${CONSTITUENT})) && [ echo n|comp $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}) >nul 2>&1 ] == 0 34 !if [ del $(cmt_local_setup_${CONSTITUENT}) ] == 0 35 !endif 36 !else 37 !if [ move /y $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}) >nul ] == 0 38 !endif 25 39 !endif 26 40 … … 31 45 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake 32 46 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake 33 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake 47 #cmt_local_setup_${CONSTITUENT} = $(bin)setup.nmake.tmp 48 cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake 49 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake 34 50 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake 35 51 36 52 !endif 37 53 38 !if "$(QUICK)" == "" 39 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs 40 !else 41 $(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 42 !endif 54 #!if "$(QUICK)" == "" 55 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs 56 #!else 57 #$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 58 #!endif 59 $(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT}) 43 60 $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake 44 61 @set include=$(include) 45 62 @set lib=$(lib) 46 63 @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT} 47 $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done64 # $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done 48 65 49 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 66 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs 50 67 $(echo) (constituents.nmake) Starting ${CONSTITUENT} 51 68 @set include=$(include) … … 56 73 clean :: ${CONSTITUENT}clean 57 74 58 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 75 #${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 76 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 59 77 $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean 60 78 @set include=$(include) 61 79 @set lib=$(lib) 62 @ -if exist $(cmt_local_${CONSTITUENT}_makefile)$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)80 @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) 63 81 $(echo) (constituents.nmake) ${CONSTITUENT}clean done 82 # @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) 83 # $(echo) (constituents.nmake) ${CONSTITUENT}clean done 64 84 65 85 install :: ${CONSTITUENT}install … … 75 95 76 96 ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile) 77 $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT} "97 $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT} 78 98 @set include=$(include) 79 99 @set lib=$(lib) -
CMT/HEAD/mgr/fragments/nmake/constituent_lock
r473 r487 9 9 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake 10 10 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake 11 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake 11 cmt_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake.tmp 12 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake 13 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake 12 14 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake 13 15 … … 17 19 !endif 18 20 19 !if "$(QUICK)" == "" 21 !if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile_${CONSTITUENT})) 20 22 23 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile_${CONSTITUENT})] == 0 24 !endif 21 25 !if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0 22 26 !endif 23 27 24 !if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0 28 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup_${CONSTITUENT})] == 0 29 !endif 30 !if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT})] == 0 31 !endif 32 33 !if exist ($(cmt_final_setup_${CONSTITUENT})) && [ echo n|comp $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}) >nul 2>&1 ] == 0 34 !if [ del $(cmt_local_setup_${CONSTITUENT}) ] == 0 35 !endif 36 !else 37 !if [ move /y $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}) >nul ] == 0 38 !endif 25 39 !endif 26 40 … … 31 45 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake 32 46 cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake 33 cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake 47 #cmt_local_setup_${CONSTITUENT} = $(bin)setup.nmake.tmp 48 cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake 49 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake 34 50 cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake 35 51 36 52 !endif 37 53 38 !if "$(QUICK)" == "" 39 $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs 40 !else 41 $(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 42 !endif 54 #!if "$(QUICK)" == "" 55 #$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs 56 #!else 57 #$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT}) 58 #!endif 59 $(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT}) 43 60 $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake 44 61 @set include=$(include) 45 62 @set lib=$(lib) 46 63 @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT} 47 $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done64 # $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done 48 65 49 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 50 $(echo) (constituents. make) Creating ${CONSTITUENT}$(lock_suffix)66 ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs 67 $(echo) (constituents.nmake) Creating ${CONSTITUENT}$(lock_suffix) 51 68 @$(lock_command) ${CONSTITUENT}$(lock_suffix) 52 69 $(echo) (constituents.nmake) Starting ${CONSTITUENT} … … 60 77 clean :: ${CONSTITUENT}clean 61 78 62 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 79 #${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) 80 ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) $(cmt_local_${CONSTITUENT}_makefile) 63 81 $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean 64 82 @set include=$(include) 65 83 @set lib=$(lib) 66 @ -if exist $(cmt_local_${CONSTITUENT}_makefile)$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)84 @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) 67 85 $(echo) (constituents.nmake) ${CONSTITUENT}clean done 86 # @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) 87 # $(echo) (constituents.nmake) ${CONSTITUENT}clean done 68 88 69 89 install :: ${CONSTITUENT}install … … 79 99 80 100 ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile) 81 $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT} "101 $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT} 82 102 @set include=$(include) 83 103 @set lib=$(lib) -
CMT/HEAD/mgr/fragments/nmake/constituents_header
r472 r487 1 #-- start of constituents_header ------ 1 2 2 3 !include $(CMTROOT)/src/NMakefile.core … … 14 15 cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).nmake 15 16 16 !if "$(QUICK)" == "" 17 cmt_local_setup = $(bin)setup.nmake.tmp 18 cmt_final_setup = $(bin)setup.nmake 19 20 !if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile)) 17 21 18 22 #!if [$(echo) (constituents.nmake) Rebuilding $(${PACKAGE}_tag).nmake] == 0 19 23 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile)] == 0 20 24 !endif 21 22 25 #!if [cmt build tag_makefile -tag_add=$(tags) >$(${PACKAGE}_tag).nmake] == 0 23 26 !if [cmt build tag_makefile -tag_add=$(tags) >$(cmt_local_tagfile)] == 0 27 !endif 28 29 !if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup)] == 0 30 !endif 31 !if [cmt -tag=$(tags) show setup >$(cmt_local_setup)] == 0 32 !endif 33 34 !if exist ($(cmt_final_setup)) && [ echo n|comp $(cmt_final_setup) $(cmt_local_setup) >nul 2>&1 ] == 0 35 !if [ del $(cmt_local_setup) ] == 0 36 !endif 37 !else 38 !if [ move /y $(cmt_local_setup) $(cmt_final_setup) >nul ] == 0 39 !endif 24 40 !endif 25 41 … … 33 49 #-------------------------------------------------------- 34 50 35 cmt_lock_setup = lock$(cmt_lock_pid).nmake36 cmt_setup_pid = $(bin)setup.nmake51 #cmt_lock_setup = lock$(cmt_lock_pid).nmake 52 #cmt_setup_pid = $(bin)setup.nmake 37 53 38 config :: ##$(${PACKAGE}_tag).nmake54 #config :: ##$(${PACKAGE}_tag).nmake 39 55 40 56 env.nmake :: … … 49 65 @if not exist $(src) mkdir $(src) 50 66 51 !if "$(QUICK)" == "" 52 dirs :: 67 dirs :: requirements 68 @if not exist $(bin) mkdir $(bin) 69 70 requirements : 53 71 @if not exist requirements echo "No requirements file" 54 $(echo) (constituents.nmake) Rebuilding setup.nmake 55 @if not exist $(bin) mkdir $(bin) 56 @$(cmtexe) -tag=$(tags) show setup >$(cmt_setup_pid) 57 $(echo) setup.nmake ok 58 !else 59 dirs :: 60 @if not exist requirements echo "No requirements file" 61 @if not exist $(bin) mkdir $(bin) 62 !endif 72 73 #!if "$(QUICK)" == "" 74 #dirs :: 75 # @if not exist requirements echo "No requirements file" 76 # $(echo) (constituents.nmake) Rebuilding setup.nmake 77 # @if not exist $(bin) mkdir $(bin) 78 # @$(cmtexe) -tag=$(tags) show setup >$(cmt_setup_pid) 79 # $(echo) setup.nmake ok 80 #!else 81 #dirs :: 82 # @if not exist requirements echo "No requirements file" 83 # @if not exist $(bin) mkdir $(bin) 84 #!endif 63 85 64 86 .DEFAULT : 65 87 $(echo) "???" 66 88 89 #-- end of constituents_header ------ -
CMT/HEAD/mgr/fragments/nmake/constituents_trailer
r445 r487 1 #-- start of constituents_trailer ------ 1 2 2 clean :: remove_library_links3 #clean :: remove_library_links 3 4 4 5 remove_library_links :: 5 $(echo) " Removing library links"6 $(echo) "(constituents.make) Removing library links" 6 7 @$(remove_library_links) 7 8 8 9 makefilesclean :: 9 @if exist *.make.* del *.make*10 # @if exist *.nmake* del *.nmake* 10 11 11 12 ### @if exist checkuses del checkuses … … 13 14 clean :: makefilesclean 14 15 15 binclean :: clean 16 @del /Q $(bin)\* 16 #binclean :: clean 17 binclean :: 18 $(echo) (constituents.make) Removing binary directory $(bin) 19 $(cleanup_silent)if not "$(bin)"==".\" (if exist $(bin) rmdir /S /Q $(bin)) 20 # @del /Q $(bin)\* 17 21 22 #-- end of constituents_trailer ------ -
CMT/HEAD/mgr/fragments/nmake/cpp
r483 r487 3 3 !if "${DEPENDENCIESOPTS}" != "" 4 4 5 !if exist s($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d)5 !if exist ($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d) 6 6 !include $(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d 7 7 !endif -
CMT/HEAD/mgr/fragments/nmake/cpp_library
r483 r487 3 3 !if "${DEPENDENCIESOPTS}" != "" 4 4 5 !if exist s($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d)5 !if exist ($(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d) 6 6 !include $(bin)${CONSTITUENT}\${NAME}${CONSTITUENTSUFFIX}.d 7 7 !endif -
CMT/HEAD/mgr/fragments/nmake/dependencies
r474 r487 13 13 !endif 14 14 15 !if exist ($(bin)${CONSTITUENT}_dependencies.nmake) 15 16 !include $(bin)${CONSTITUENT}_dependencies.nmake 17 !endif 16 18 17 19 #-- end of dependency ------------------ -
CMT/HEAD/mgr/fragments/nmake/group
r445 r487 1 #-- start of group ------ 1 2 2 3 all_groups :: ${GROUP} 3 4 4 ${GROUP} :: $(${GROUP}_pre_constituents)$(${GROUP}_constituents) $(${GROUP}_post_constituents)5 ${GROUP} :: $(${GROUP}_dependencies) $(${GROUP}_pre_constituents) $(${GROUP}_constituents) $(${GROUP}_post_constituents) 5 6 $(echo) " ${GROUP} ok." 6 7 … … 13 14 ${GROUP}clean :: makefilesclean 14 15 16 #-- end of group ------ -
CMT/HEAD/mgr/fragments/nmake/install_includes_header
r11 r487 18 18 @if NOT "$(CMTINSTALLAREA)"=="" $(cmt_installdir_action) "$(PACKAGE_ROOT)" "$(package)" "$(install_dir)" "$(cmt_installdir_excludes)" 19 19 20 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall20 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 21 21 22 22 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/jar
r445 r487 24 24 !endif 25 25 26 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall26 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 27 27 28 28 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/java_header
r445 r487 31 31 !endif 32 32 33 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall33 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 34 34 35 35 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/library
r469 r487 68 68 !endif 69 69 70 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall70 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 71 71 72 72 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/library_no_share
r469 r487 34 34 !endif 35 35 36 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall36 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 37 37 38 38 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/library_no_static
r469 r487 86 86 !endif 87 87 88 ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall88 ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall 89 89 90 90 uninstall :: ${CONSTITUENT}uninstall -
CMT/HEAD/mgr/fragments/nmake/make_header
r469 r487 46 46 !include $(cmt_local_tagfile) 47 47 48 ${CONSTITUENT} :: 48 !if defined (cmt_${CONSTITUENT}_has_target_tag) 49 50 cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.make 51 #cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 52 53 !else 54 55 cmt_final_setup_${CONSTITUENT} = $(bin)setup.make 56 #cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make 57 58 !endif 59 60 #cmt_final_setup = $(bin)setup.make 61 62 #${CONSTITUENT} :: 49 63 50 64 javadirs :: … … 61 75 @echo '${CONSTITUENT}' 62 76 77 !if "$(use_requirements)" != "" 78 $(use_requirements) : ; 79 !endif 80 63 81 #-- end of make_header ------------------ -
CMT/HEAD/mgr/fragments/nmake/protos_header
r11 r487 1 #-- start of protos_header ------ 1 2 2 3 ${CONSTITUENT}PROTOS :: ${PROTOSTAMPS} 3 @echo ${CONSTITUENT} : Protos ok 4 $(echo) "${CONSTITUENT} : Protos ok" 5 # @echo ${CONSTITUENT} : Protos ok 4 6 7 #-- end of protos_header ------ -
CMT/HEAD/mgr/fragments/protos_header
r11 r487 2 2 3 3 ${CONSTITUENT}PROTOS :: ${PROTOSTAMPS} 4 @/bin/echo ${CONSTITUENT} : Protos ok4 $(echo) "${CONSTITUENT} : Protos ok" 5 5 6 6 #-- end of protos_header ------ -
CMT/HEAD/source/cmt_parser.cxx
r485 r487 3886 3886 void Cmt::do_show_groups (const ArgParser& /*ap*/) 3887 3887 { 3888 Constituent::parse_all (); 3889 // set_standard_macros (); 3888 3890 Group::show_all (); 3889 3891 } -
CMT/HEAD/src/Makefile.header
r483 r487 18 18 tags = $(tag),$(CMTEXTRATAGS) 19 19 20 ifdef READONLY21 cmt_local_tagfile = /tmp/CMT_$(tag).make$$$$22 else23 20 cmt_local_tagfile = $(bin)$(tag).make 24 endif25 21 26 ifdef READONLY27 cmt_constituents_makefile = /tmp/CMT_$(tag)_constituents.make$$$$28 else29 22 cmt_constituents_makefile = $(bin)constituents.make 30 endif 23 24 cmt_local_setup = $(bin)setup$$$$.make 25 #cmt_local_setup = $(bin)$(package)setup$$$$.make 26 #cmt_final_setup = $(bin)${PACKAGE}setup.make 27 cmt_final_setup = $(bin)setup.make 28 #cmt_final_setup = $(bin)$(package)setup.make 31 29 32 30 # … … 42 40 @$(cmtexe) check configuration; retval=$$?; \ 43 41 if test $${retval} = 0; then \ 44 $(MAKE) --no-print-directory target=" first configall" common_target; \42 $(MAKE) --no-print-directory target="all" common_target; \ 45 43 else \ 46 44 echo "#CMT> There are configuration errors. Please correct them before running gmake"; \ … … 48 46 49 47 no_check_config :: 50 @$(MAKE) --no-print-directory target=" first configall" common_target48 @$(MAKE) --no-print-directory target="all" common_target 51 49 52 50 binclean :: … … 54 52 if test -d $(bin) ; then \ 55 53 test -z "$(cmtmsg)" || \ 56 echo "$(CMTMSGPREFIX)" "(Makefile.header) Cleaning all from$(bin)"; \54 echo "$(CMTMSGPREFIX)" "(Makefile.header) Removing binary directory $(bin)"; \ 57 55 /bin/rm -rf $(bin) ; \ 58 56 fi ; \ … … 65 63 .DEFAULT :: 66 64 @$(cmtexe) check configuration 67 $(MAKE) --no-print-directory target="first config$@" common_target65 @$(MAKE) --no-print-directory target="$@" common_target 68 66 # @$(MAKE) --no-print-directory target="config $@" common_target 69 67 … … 71 69 # Capture all possible targets 72 70 # 73 ifdef READONLY74 common_target ::75 @tmpdir=/tmp; \76 if test ! "${TMPDIR}" = ""; then tmpdir=${TMPDIR}; fi; \77 cmt_lock_pid=`mkdir -p $${tmpdir}; mktemp $${tmpdir}/CMT_XXXXXX | sed -e 's#'"$${tmpdir}"'/CMT_##'`; \78 temp_marker=$${tmpdir}/CMT_$${cmt_lock_pid}; \79 temp_lock=$${tmpdir}/CMT_lock$${cmt_lock_pid}.make; \80 temp_constituents=$${tmpdir}/CMT_constituents$${cmt_lock_pid}; \81 if test ! "${CMTMAKEDEBUG}" = 1; then\82 trap '/bin/rm -f $${temp_lock} $${temp_constituents} $${temp_marker}; exit $${status}' 0 1 2 15; \83 fi; \84 /bin/rm -f $${temp_marker}; \85 /bin/rm -f $${temp_lock}; \86 echo "------> (Makefile.header) Rebuilding constituents.make"; \87 $(cmtexe) -tag=$(tags) build constituents_makefile -out=$${temp_constituents}; status=$$?; \88 if test $${status} = 0; then \89 /bin/rm -f $(cmt_local_tagfile); \90 $(MAKE) --no-print-directory -f $${temp_constituents} cmt_lock_pid=$${cmt_lock_pid} $(target); \91 status=$$?; \92 else \93 echo "#CMT> Error generating constituents makefile"; \94 fi; \95 exit $${status}96 else97 71 common_target : $(cmt_constituents_makefile) 98 @$(MAKE) --no-print-directory -f $ < cmt_lock_pid=$(cmt_lock_pid) $(target)99 endif 72 @$(MAKE) --no-print-directory -f $(cmt_constituents_makefile) $(target) 73 # @$(MAKE) --no-print-directory -f $< cmt_lock_pid=$(cmt_lock_pid) $(target) 100 74 101 75 $(cmt_constituents_makefile) : $(cmt_local_tagfile) … … 118 92 if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \ 119 93 $(cmtexe) -tag=$(tags) build tag_makefile >$@ 94 $(echo) "(Makefile.header) Rebuilding $(cmt_final_setup)"; \ 95 test ! -f $(cmt_local_setup) || \rm -f $(cmt_local_setup); \ 96 trap '\rm -f $(cmt_local_setup)' 0 1 2 15; \ 97 $(cmtexe) -tag=$(tags) show setup >$(cmt_local_setup) && \ 98 if [ -f $(cmt_final_setup) ] && \ 99 \cmp -s $(cmt_final_setup) $(cmt_local_setup); then \ 100 \rm $(cmt_local_setup); else \ 101 \mv -f $(cmt_local_setup) $(cmt_final_setup); fi 120 102 121 103 # && /bin/echo $@ ok … … 147 129 @echo 'clean : remove everything that can be rebuilt' 148 130 @echo 'binclean : fast erase of the binary directory' 131 @echo 'uninstall : remove everything installed in the installation area' 149 132 @echo ' ' 150 133 @groups=`$(cmtexe) show groups -tag=$(tags)`; \ … … 154 137 @echo "Constituents:"; \ 155 138 for c in `$(cmtexe) show constituent_names -tag=$(tags)` ; do \ 156 echo " $${c} $${c}clean "; \139 echo " $${c} $${c}clean $${c}uninstall"; \ 157 140 done 158 141 @echo ' ' -
CMT/HEAD/src/NMakefile.header
r472 r487 43 43 @echo -------------------------------------------------------------------------- 44 44 @echo You may select one of the following make targets : 45 @echo 45 @echo. 46 46 @echo help : this help 47 47 @echo all : rebuild everything according to the $$(constituents) macro 48 48 @echo (this is the default target) 49 49 @echo clean : remove everything that can be rebuilt 50 @echo configclean : remove configuration files (*.nmake) 51 @echo 50 # @echo configclean : remove configuration files (*.nmake) 51 @echo binclean : fast erase of the binary directory 52 @echo uninstall : remove everything installed in the installation area 53 @echo. 54 @for /F "usebackq" %%i in (`$(cmtexe) show groups -tag^=$(tags)`) do \ 55 @echo %%i : rebuild all constituents of group %%i 56 @echo Constituents: & \ 57 for /F "usebackq" %%i in (`$(cmtexe) show constituent_names -tag^=$(tags)`) do \ 58 @echo %%i %%iclean %%iuninstall 59 @echo. 52 60 @echo check : 53 61 @echo run all applications defined with the -check option 54 @echo 55 @echo everywhere [target=...] : 56 @echo o Rebuild on all plateforms specified in the $$(everywhere) macro 57 @echo o Use "cmt show macro everywhere -tag=<site>" to check it 58 @echo o The "target" option permits to transmit a target to the remote site 59 62 @echo. 63 # @echo everywhere [target=...] : 64 # @echo o Rebuild on all plateforms specified in the $$(everywhere) macro 65 # @echo o Use "cmt show macro everywhere -tag=<site>" to check it 66 # @echo o The "target" option permits to transmit a target to the remote site 60 67 61 68 cmt_constituents_makefile = $(bin)constituents.nmake … … 66 73 !ENDIF 67 74 68 !if "$(QUICK)" == "" 75 !if "$(QUICK)" == "" || !exist ($(cmt_constituents_makefile)) 76 77 !if [$(echo) (NMakefile.header) Rebuilding $(cmt_constituents_makefile)] == 0 78 !endif 69 79 !if [$(cmtexe) -tag=$(tags) build constituents_makefile -out=$(cmt_constituents_makefile)] == 0 70 80 !endif 81 71 82 !endif 72 83 … … 75 86 76 87 77 78
Note: See TracChangeset
for help on using the changeset viewer.