This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] stephen's staging headers patch


On Tue, 03 Jul 2001, Benjamin Kosnik wrote:
>
> If you could post the patch, please let me know. I'd like to try and get 
> this patch in within the next week.

Got it.  The problem was a dependency on a directory that would get modified
after mknumeric_limits was run.  Solved through an extra level of indirection.

*** gcc.1/libstdc++-v3/include/Makefile.am	Thu May 24 21:29:53 2001
--- gcc-cvssrc/libstdc++-v3/include/Makefile.am	Wed May 30 22:26:21 2001
*************** ${target_builddir}/c++locale.h: ${glibcp
*** 360,369 ****
  ${target_builddir}/c++threads.h: ${glibcpp_srcdir}/@CTHREAD_H@ ${target_builddir}
  	@cp ${glibcpp_srcdir}/@CTHREAD_H@ $@
  
! ${target_builddir}:
  	@if [ ! -d ${target_builddir} ]; then \
        mkdir -p ${target_builddir} ;\
      fi
  
  ${target_builddir}/c++config.h: ${glibcpp_builddir}/config.h \
                                ${glibcpp_srcdir}/include/bits/c++config \
--- 379,397 ----
  ${target_builddir}/c++threads.h: ${glibcpp_srcdir}/@CTHREAD_H@ ${target_builddir}
  	@cp ${glibcpp_srcdir}/@CTHREAD_H@ $@
  
! ##
! ## This target is kinda special. The timestamp on a directory gets modified whenever
! ## a file it contains gets modified, and that'll throw off all the build dependencies
! ## that need this target.  On the other hand, someone could delete the directory and
! ## not the stamp file, faking out the make.  I had to choose.
! ##
! ${target_builddir}: stamp-${target_alias}
! 
! stamp-${target_alias}:
  	@if [ ! -d ${target_builddir} ]; then \
        mkdir -p ${target_builddir} ;\
      fi
+ 	echo `date` >stamp-${target_alias}
  
  ${target_builddir}/c++config.h: ${glibcpp_builddir}/config.h \
                                ${glibcpp_srcdir}/include/bits/c++config \


-- 

Stephen M. Webb
stephen at bregmasoft dot com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]