+2003-02-11 Tom Yu <tlyu@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* Makefile.in: Fix $(EHDRDIR) creation to avoid spurious
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
##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 $@
clean-windows::
$(RM) $(HDRS)
- -if exist $(EHDRDIR)\stamp $(RM) $(EHDRDIR)\stamp
-if exist $(EHDRDIR)\nul rmdir $(EHDRDIR)
# Krb5InstallHeaders($(EXPORTED_HEADERS), $(KRB5_INCDIR)/krb5)