Be more friendly towards parallel builds
authorKen Raeburn <raeburn@mit.edu>
Wed, 14 May 2003 20:48:22 +0000 (20:48 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 14 May 2003 20:48:22 +0000 (20:48 +0000)
* Makefile.in ($(EHDRDIR)$(S)timestamp): New target, used for ensuring
$(EHDRDIR) exists.
(clean-unix): Delete the dummy file.
($(EHDRDIR)$(S)gssapi.h): Depend on it, instead of creating the directory here.
($(EHDRDIR)$(S)gssapi_generic.h): Likewise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15443 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/generic/ChangeLog
src/lib/gssapi/generic/Makefile.in

index bd58e5ae71a379da5b7702534b18fcde6282f9df..bd2cde48f29a0e219722f2a5f5b26a0a93ba62d3 100644 (file)
@@ -1,3 +1,12 @@
+2003-05-14  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in ($(EHDRDIR)$(S)timestamp): New target, used for
+       ensuring $(EHDRDIR) exists.
+       (clean-unix): Delete the dummy file.
+       ($(EHDRDIR)$(S)gssapi.h): Depend on it, instead of creating the
+       directory here.
+       ($(EHDRDIR)$(S)gssapi_generic.h): Likewise.
+
 2003-03-06  Alexandra Ellwood  <lxs@mit.edu>
 
     * disp_com_err_status.c, gssapi_generic.h:  
index 8ac282f374c3feae07d9edc5a85215b140f6fdc5..79985701f3a6647900a9cd57a7d6a9cc5658c030 100644 (file)
@@ -25,13 +25,15 @@ MK_EHDRDIR=if test -d $(EHDRDIR); then :; else (set -x; mkdir $(EHDRDIR)); fi
 
 gssapi-include: $(EHDRDIR)$(S)gssapi.h
 
-$(EHDRDIR)$(S)gssapi.h: gssapi.h
-       @$(MK_EHDRDIR)
+$(EHDRDIR)$(S)gssapi.h: $(EHDRDIR)$(S)timestamp gssapi.h
        $(CP) gssapi.h $@
-$(EHDRDIR)$(S)gssapi_generic.h: $(srcdir)$(S)gssapi_generic.h
-       @$(MK_EHDRDIR)
+$(EHDRDIR)$(S)gssapi_generic.h: $(EHDRDIR)$(S)timestamp $(srcdir)$(S)gssapi_generic.h
        $(CP) $(srcdir)$(S)gssapi_generic.h $@
 
+$(EHDRDIR)$(S)timestamp:
+       $(MK_EHDRDIR)
+       echo timestamp > $(EHDRDIR)$(S)timestamp
+
 $(OUTPRE)gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c
 gssapi_err_generic.h: gssapi_err_generic.et
 gssapi_err_generic.c: gssapi_err_generic.et
@@ -119,7 +121,8 @@ win-create-ehdrdir:
        if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR)
 
 clean-unix:: clean-libobjs
-       $(RM) $(ETHDRS) $(ETSRCS) $(HDRS) $(EXPORTED_BUILT_HEADERS)
+       $(RM) $(ETHDRS) $(ETSRCS) $(HDRS) $(EXPORTED_BUILT_HEADERS) \
+               $(EHDRDIR)$(S)timestamp
 
 clean-windows::
        $(RM) $(HDRS)