From 326f378d721ec9a9a67661455a28af53084f3eff Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 17 Apr 2001 19:36:06 +0000 Subject: [PATCH] * Makefile.in (includes): New target git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13183 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/error_tables/ChangeLog | 7 +++++++ src/lib/krb5/error_tables/Makefile.in | 22 +++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/lib/krb5/error_tables/ChangeLog b/src/lib/krb5/error_tables/ChangeLog index b75611379..ab2a6a520 100644 --- a/src/lib/krb5/error_tables/ChangeLog +++ b/src/lib/krb5/error_tables/ChangeLog @@ -1,3 +1,10 @@ +2001-04-17 Ken Raeburn + + * Makefile.in (includes): New target. Copy headers into proper + include directory. + (unixmac): Target deleted. + (THDRDIR): New variable. + 2000-10-26 Tom Yu * asn1_err.et: Add error codes MISMATCH_INDEF and MISSING_EOC. diff --git a/src/lib/krb5/error_tables/Makefile.in b/src/lib/krb5/error_tables/Makefile.in index d2a52ebe5..c732fe0f1 100644 --- a/src/lib/krb5/error_tables/Makefile.in +++ b/src/lib/krb5/error_tables/Makefile.in @@ -8,20 +8,9 @@ BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U) ##DOS##OBJFILE=..\$(OUTPRE)err_tbls.lst ##WIN16##LIBNAME=..\krb5.lib +THDRDIR=$(BUILDTOP)$(S)include EHDRDIR=$(BUILDTOP)$(S)include$(S)krb5 -# The "unixmac" and "includes" rules need to run in Makefile.in, -# without all the support glop like $(S) and $(BUILDTOP)...so, fake it. -# -# Faking things breaks VPATH support, which is a requirement for me -- TYT. -# You need to do this right! Whatever config tools that you're using under -# the macintosh, is going to need to handle BUILDTOP and SRCTOP explicitly. -# Setting BUILDTOP and SRCTOP to be the same is Right Out. -# -#BUILDTOP2 = ../../.. -#SRCTOP2 = $(BUILDTOP2) -#EHDRDIR2=$(BUILDTOP2)/include/krb5 - STLIBOBJS= asn1_err.o kdb5_err.o krb5_err.o \ kv5m_err.o adm_err.o init_ets.o @@ -37,7 +26,14 @@ SRCS= asn1_err.c kdb5_err.c krb5_err.c kv5m_err.c adm_err.c \ all-unix:: all-libobjs all-libobjs: $(HDRS) -unixmac: $(HDRS) $(SRCS) +includes:: $(HDRS) + for f in $(HDRS) ; do \ + if cmp $$f $(THDRDIR)/$$f >/dev/null 2>&1; then :; \ + else \ + (set -x; $(RM) $(THDRDIR)/$$f; \ + $(CP) $$f $(THDRDIR)/$$f) ; \ + fi ; \ + done awk-windows: $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=asn1_err.h asn1_err.et -- 2.26.2