From 93726adeb58e8485a79ea0955a219c6192ec8bff Mon Sep 17 00:00:00 2001 From: John Carr Date: Sun, 23 Feb 1992 12:26:14 +0000 Subject: [PATCH] Add hack to work around imake problems on some systems when building asn.1/Makefile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2239 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/Imakefile | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/Imakefile b/src/lib/krb5/Imakefile index 5859cf30d..b5fec1582 100644 --- a/src/lib/krb5/Imakefile +++ b/src/lib/krb5/Imakefile @@ -26,8 +26,11 @@ #define PassCDebugFlags NormalLibraryObjectRule() -SUBDIRS = error_tables asn.1 ccache keytab krb rcache free os kdb des \ +SUBDIRS1 = error_tables +SUBDIRS2 = ccache keytab krb rcache free os kdb des \ des425 crc-32 krb425 rsa-md4 gssapi +SUBDIRS = $(SUBDIRS1) asn.1 $(SUBDIRS2) + #ifdef HasVfprintf VPOBJS= VPSRCS= @@ -64,6 +67,31 @@ SRCS = \ MakeSubdirs($(SUBDIRS)) +/* This target will make all Makefiles except asn.1/Makefile. */ +#undef MakefileSubdirs +#define MakefileSubdirs(dirs) @@\ +MakeMakeSubdirs($(SUBDIRS1) $(SUBDIRS2), Makefiles) @@\ +MakeNsubdirMakefiles() + +Makefiles:: + $(MAKE) asn.1/Makefile TOP=../$(TOP) CURRENT_DIR=$(CURRENT_DIR)/asn.1 + +asn.1/Makefile:: + cd asn.1; set -e; \ + $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -s Makefile.new; \ + sed 's/^@/ @/' Makefile.new > Makefile.newer && $(MV) Makefile.newer Makefile.new ;\ + $(MAKE) -f Makefile.new noop; \ + if [ -f Makefile ]; then \ + echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ + $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ + fi ; \ + $(MV) Makefile.new Makefile; \ + $(RM) Makefile.new Makefile.newer + + AdditiveLibraryTarget(krb5,$(OBJS)) RanlibLibraryTarget(des5) + +Krb5InstallLibrary(krb5,$(KRB5_LIBDIR)) +Krb5InstallLibrary(des5,$(KRB5_LIBDIR)) -- 2.26.2