From cef9f8f372063e1e7d53b0a3ac4ac020fbf7840b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 17 Jan 2003 23:28:59 +0000 Subject: [PATCH] Use new target create-ehdrdir, defined differently for UNIX and WIN32, to 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 | 4 +++- src/lib/gssapi/generic/Makefile.in | 13 ++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 2ee447417..878fd566e 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,9 +1,11 @@ 2003-01-17 Ken Raeburn - * 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 diff --git a/src/lib/gssapi/generic/Makefile.in b/src/lib/gssapi/generic/Makefile.in index e10c52ade..3e38040c6 100644 --- a/src/lib/gssapi/generic/Makefile.in +++ b/src/lib/gssapi/generic/Makefile.in @@ -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) -- 2.26.2