Changeset 487 for CMT/HEAD/src
- Timestamp:
- Jan 8, 2009, 11:23:36 AM (15 years ago)
- Location:
- CMT/HEAD/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.