Use new target create-ehdrdir, defined differently for UNIX and WIN32, to
authorKen Raeburn <raeburn@mit.edu>
Fri, 17 Jan 2003 23:28:59 +0000 (23:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 17 Jan 2003 23:28:59 +0000 (23:28 +0000)
conditionally create the target directory $(EHDRDIR) if needed, before copying
files into it.

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

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

index 2ee44741718ee5647bdcbfd4d881e3c29397afc3..878fd566e86af7b68e1d1e52d71a4639b6b200b7 100644 (file)
@@ -1,9 +1,11 @@
 2003-01-17  Ken Raeburn  <raeburn@mit.edu>
 
-       * Makefile.in ($(EHDRDIR)$(S)gssapi.h): Depend on includes-unix,
+       * Makefile.in ($(EHDRDIR)$(S)gssapi.h): Depend on create-ehdrdir,
        to make sure the directory is created before installation of the
        file.
        ($(EHDRDIR)$(S)gssapi_generic.h): Likewise.
+       (create-ehdrdir): New target on UNIX.  Renamed from $(EHDRDIR) on
+       Windows and changed to check for an existing directory.
 
 2003-01-10  Ken Raeburn  <raeburn@mit.edu>
 
index e10c52ade83964b0baeccf6199ebb061e5170d9d..3e38040c687ba98cd3a018468a051ee35754731e 100644 (file)
@@ -20,9 +20,9 @@ EHDRDIR= $(BUILDTOP)$(S)include$(S)gssapi
 HDRS=  $(EHDRDIR)$(S)gssapi.h \
        $(EHDRDIR)$(S)gssapi_generic.h
 
-$(EHDRDIR)$(S)gssapi.h: gssapi.h includes-unix
+$(EHDRDIR)$(S)gssapi.h: gssapi.h create-ehdrdir
        $(CP) gssapi.h $@
-$(EHDRDIR)$(S)gssapi_generic.h: $(srcdir)$(S)gssapi_generic.h includes-unix
+$(EHDRDIR)$(S)gssapi_generic.h: $(srcdir)$(S)gssapi_generic.h create-ehdrdir
        $(CP) $(srcdir)$(S)gssapi_generic.h $@
 
 $(OUTPRE)gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c
@@ -104,10 +104,13 @@ all-unix:: all-libobjs
 
 ##DOS##LIBOBJS = $(OBJS)
 
-all-windows:: $(EHDRDIR) $(HDRS)
+all-windows:: create-ehdrdir $(HDRS)
 
-##DOS##$(EHDRDIR):
-##DOS##        mkdir $(EHDRDIR)
+##DOS##create-ehdrdir:
+##DOS##        if not exist $(EHDRDIR)\nul mkdir $(EHDRDIR)
+##DOS##!if 0
+create-ehdrdir: includes-unix
+##DOS##!endif
 
 clean-unix:: clean-libobjs
        $(RM) $(ETHDRS) $(ETSRCS) $(HDRS) $(EXPORTED_BUILT_HEADERS)