From d8ab51fb568056529fe4d763cfdafae8d2661d3c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 11 Feb 2003 05:13:49 +0000 Subject: [PATCH] * Makefile.in: Another attempt... turns our that the "copy" command on Windows preserves modtimes, so spurious rebuilds were happening even with the stamp file, since the target in $(EHDRDIR) is always out of date with respect to the stamp file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15178 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 7 +++++++ src/lib/gssapi/generic/Makefile.in | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 43126077d..14712d303 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,10 @@ +2003-02-11 Tom Yu + + * Makefile.in: Another attempt... turns our that the "copy" + command on Windows preserves modtimes, so spurious rebuilds were + happening even with the stamp file, since the target in $(EHDRDIR) + is always out of date with respect to the stamp file. + 2003-02-10 Tom Yu * Makefile.in: Fix $(EHDRDIR) creation to avoid spurious diff --git a/src/lib/gssapi/generic/Makefile.in b/src/lib/gssapi/generic/Makefile.in index be9755ed3..db09105fc 100644 --- a/src/lib/gssapi/generic/Makefile.in +++ b/src/lib/gssapi/generic/Makefile.in @@ -20,9 +20,12 @@ EHDRDIR= $(BUILDTOP)$(S)include$(S)gssapi HDRS= $(EHDRDIR)$(S)gssapi.h \ $(EHDRDIR)$(S)gssapi_generic.h -$(EHDRDIR)$(S)gssapi.h: gssapi.h $(EHDRDIR)$(S)stamp +EHDRDIRSTAMP=$(EHDRDIR)/stamp +##DOS##EHDRDIRSTAMP= + +$(EHDRDIR)$(S)gssapi.h: gssapi.h $(EHDRDIRSTAMP) $(CP) gssapi.h $@ -$(EHDRDIR)$(S)gssapi_generic.h: $(srcdir)$(S)gssapi_generic.h $(EHDRDIR)$(S)stamp +$(EHDRDIR)$(S)gssapi_generic.h: $(srcdir)$(S)gssapi_generic.h $(EHDRDIRSTAMP) $(CP) $(srcdir)$(S)gssapi_generic.h $@ $(OUTPRE)gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c @@ -104,14 +107,12 @@ all-unix:: all-libobjs ##DOS##LIBOBJS = $(OBJS) -all-windows:: $(EHDRDIR)$(S)stamp $(HDRS) +all-windows:: win-create-ehdrdir +all-windows:: $(HDRS) -# windows -$(EHDRDIR)\stamp: +win-create-ehdrdir: if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR) - echo. > $@ -# unix $(EHDRDIR)/stamp: @if test -d $(EHDRDIR); then :; \ else (set -x; mkdir $(EHDRDIR)) fi; touch $@ @@ -123,7 +124,6 @@ clean-unix:: clean-libobjs clean-windows:: $(RM) $(HDRS) - -if exist $(EHDRDIR)\stamp $(RM) $(EHDRDIR)\stamp -if exist $(EHDRDIR)\nul rmdir $(EHDRDIR) # Krb5InstallHeaders($(EXPORTED_HEADERS), $(KRB5_INCDIR)/krb5) -- 2.26.2