- Timestamp:
- Feb 16, 2008, 1:29:38 PM (16 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r441 r442 1 2008-02-16 <rybkin@lal.in2p3.fr> 346 2 3 * src/Makefile.core: Improve the control of the verbosity of Make 4 * mgr/fragments/library: idem 5 * mgr/cmt_install_action.sh: idem 6 * mgr/cmt_uninstall_action.sh: idem 7 * mgr/cmt_make_shlib.sh: idem 8 1 9 2008-02-15 <rybkin@lal.in2p3.fr> 345 2 10 3 * src/Makefile.core: Control the verbosity of Make by defining one of 4 the Make variables with the following effect: 11 * src/Makefile.core: Control the verbosity of Make by setting the following 12 Make variables (in order of precedence): 13 VERBOSE - print CMT messages and echo Make commands 5 14 QUIET - print CMT messages (default) 6 VERBOSE - print CMT messages and echo Make commands7 15 ECHO - echo Make commands 8 16 SILENT - no CMT messages or Make commands echoing -
CMT/HEAD/mgr/cmt_install_action.sh
r441 r442 135 135 fi 136 136 137 echo "${CMTMSGHDR}" "Installing file ${file_name} into ${install_dir}"138 137 if test -L ${dest_file_path} -o -f ${dest_file_path}; then 139 138 /bin/rm -f ${dest_file_path} … … 144 143 fi 145 144 145 if test "${cmtmsg}"; then 146 echo "${CMTMSGHDR}" "installing file ${file_name} into ${install_dir}" 147 fi 148 if test "${makecmd}"; then set -v; fi 146 149 eval ${install_command} ${full_source_name} ${dest_file_path} 147 150 echo ${full_source_name} >${ref_file} 151 if test "${makecmd}"; then set +v; fi -
CMT/HEAD/mgr/cmt_make_shlib.sh
r441 r442 36 36 37 37 if test `uname` = "Linux" ; then 38 if test "${cmtmsg}"; then 38 39 echo "${CMTMSGHDR}" "BUILDING SHARED LIBRARY ${lib}" 40 fi 39 41 # ATTEMPT 2: temp for sharedlin force 40 42 # cp lib${lib}.a lib${lib}.so -
CMT/HEAD/mgr/cmt_uninstall_action.sh
r441 r442 123 123 124 124 if test -d ${dest_file_path}; then 125 echo "${CMTMSGHDR}" Removing directory ${file_name} from ${install_dir} 125 if test "${cmtmsg}"; then 126 echo "${CMTMSGHDR}" removing directory ${file_name} from ${install_dir} 127 fi 128 if test "${makecmd}"; then set -v; fi 126 129 /bin/rm -rf ${dest_file_path} 130 if test "${makecmd}"; then set +v; fi 127 131 elif test -f ${dest_file_path}; then 128 echo "${CMTMSGHDR}" Removing file ${file_name} from ${install_dir} 132 if test "${cmtmsg}"; then 133 echo "${CMTMSGHDR}" removing file ${file_name} from ${install_dir} 134 fi 135 if test "${makecmd}"; then set -v; fi 129 136 /bin/rm -f ${dest_file_path} 137 if test "${makecmd}"; then set +v; fi 130 138 fi 131 139 132 140 if test -f ${ref_file}; then 141 if test "${makecmd}"; then set -v; fi 133 142 /bin/rm -f ${ref_file} 143 if test "${makecmd}"; then set +v; fi 134 144 fi -
CMT/HEAD/mgr/fragments/library
r441 r442 5 5 6 6 $(${CONSTITUENT}lib) :: ${OBJS} 7 $(lib_echo) " library $@"7 $(lib_echo) "static library $@" 8 8 $(lib_silent) cd $(bin); \ 9 9 $(ar) $(${CONSTITUENT}lib) $? … … 28 28 29 29 $(${CONSTITUENT}libname).$(shlibsuffix) :: $(${CONSTITUENT}lib) requirements $(use_requirements) $(${CONSTITUENT}stamps) 30 $(lib_silent) cd $(bin); QUIET=$(QUIET); $(make_shlib) "$(tags)" ${CONSTITUENT} $(${CONSTITUENT}_shlibflags) 30 $(lib_echo) "shared library $@" 31 $(lib_silent) cd $(bin); if test "$(makecmd)"; then QUIET=; else QUIET=1; fi; QUIET=$${QUIET} $(make_shlib) "$(tags)" ${CONSTITUENT} $(${CONSTITUENT}_shlibflags) 31 32 32 33 $(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}libname).$(shlibsuffix) -
CMT/HEAD/src/Makefile.core
r441 r442 41 41 # 42 42 43 ifndef CMTMSGHDR 44 CMTMSGHDR = \#CMT---> 43 # default settings 44 # o print CMT messages 45 # o do not echo Make commands 46 cmtmsg = 1 47 makecmd = 48 49 # parse all the switches 50 ifdef SILENT 51 cmtmsg = 52 makecmd = 45 53 endif 46 54 47 55 ifdef ECHO 48 VERBOSE = 1 56 cmtmsg = 57 makecmd = 1 49 58 endif 50 59 51 ifndef VERBOSE 52 QUIET = 1 60 ifdef QUIET 61 cmtmsg = 1 62 makecmd = 53 63 endif 54 64 55 ifdef SILENT 56 QUIET = 1 65 ifdef VERBOSE 66 cmtmsg = 1 67 makecmd = 1 68 endif 69 70 # set the relevant Make variables 71 ifndef CMTMSGHDR 72 CMTMSGHDR = \#CMT---> 73 export CMTMSGHDR 74 endif 75 76 ifdef cmtmsg 77 export cmtmsg 78 echo = @- echo "$(CMTMSGHDR)" 79 else 80 echo = @: 81 endif 82 83 ifdef makecmd 84 export makecmd 85 silent = 86 else 87 silent = @ 57 88 MAKEFLAGS += --silent 58 89 endif 59 90 60 ifdef QUIET61 LEX_QUIET = 162 YACC_QUIET = 163 C_QUIET = 164 CPP_QUIET = 165 FORTRAN_QUIET = 166 JAVA_QUIET = 167 LINK_QUIET = 168 LIB_QUIET = 169 CLEANUP_QUIET = 170 INSTALL_QUIET = 171 silent = @72 echo = @- echo "$(CMTMSGHDR)"73 else74 silent =75 echo = @- echo "$(CMTMSGHDR)"76 endif77 78 ifdef LEX_QUIET79 lex_silent = @80 91 lex_echo = $(echo) building 81 else 82 lex_silent = 83 lex_echo = $(echo) building 84 endif 85 86 ifdef YACC_QUIET 87 yacc_silent = @ 92 lex_silent = $(silent) 88 93 yacc_echo = $(echo) building 89 else 90 yacc_silent = 91 yacc_echo = $(echo) building 92 endif 93 94 ifdef C_QUIET 95 c_silent = @ 94 yacc_silent = $(silent) 96 95 c_echo = $(echo) compiling 97 else 98 c_silent = 99 c_echo = $(echo) compiling 100 endif 101 102 ifdef CPP_QUIET 103 cpp_silent = @ 96 c_silent = $(silent) 104 97 cpp_echo = $(echo) compiling 105 else 106 cpp_silent = 107 cpp_echo = $(echo) compiling 108 endif 109 110 ifdef FORTRAN_QUIET 111 fortran_silent = @ 98 cpp_silent = $(silent) 112 99 fortran_echo = $(echo) compiling 113 else 114 fortran_silent = 115 fortran_echo = $(echo) compiling 116 endif 117 118 ifdef JAVA_QUIET 119 java_silent = @ 100 fortran_silent = $(silent) 120 101 java_echo = $(echo) building 121 else 122 java_silent = 123 java_echo = $(echo) building 124 endif 125 126 ifdef LINK_QUIET 127 link_silent = @ 102 java_silent = $(silent) 128 103 link_echo = $(echo) building 129 else 130 link_silent = 131 link_echo = $(echo) building 132 endif 133 134 ifdef LIB_QUIET 135 lib_silent = @ 104 link_silent = $(silent) 136 105 lib_echo = $(echo) building 137 else 138 lib_silent = 139 lib_echo = $(echo) building 140 endif 141 142 ifdef CLEANUP_QUIET 143 cleanup_silent = @ 106 lib_silent = $(silent) 144 107 cleanup_echo = $(echo) removing 145 else 146 cleanup_silent = 147 cleanup_echo = $(echo) removing 148 endif 149 150 ifdef INSTALL_QUIET 151 install_silent = @ 108 cleanup_silent = $(silent) 152 109 install_echo = $(echo) installing 153 else 154 install_silent = 155 install_echo = $(echo) installing 156 endif 157 158 ifdef ECHO 159 echo = @: 160 endif 161 162 ifdef SILENT 163 echo = @: 164 endif 110 install_silent = $(silent) 111 # 112 # End of Controlling the verbosity of Make 113 #--------------------------------------------- 165 114 166 115 SHELL = /bin/sh
Note: See TracChangeset
for help on using the changeset viewer.