From f1d252151ce0b21c9d94cbc24c965122eaea49fa Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Jan 2007 10:59:19 +0000 Subject: [PATCH] * pre.in (.et.h, .et.c): Use temporary files in the current directory with fixed names, instead of incorporating the shell pid. * post.in (clean-unix): Delete the temporary files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19079 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/post.in | 2 +- src/config/pre.in | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/config/post.in b/src/config/post.in index e997c5591..6dc71ee1e 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -107,7 +107,7 @@ DEPTARGETS_@top_srcdir@_. = $(DEP_VERIFY) clean:: clean-$(WHAT) clean-unix:: - $(RM) $(OBJS) $(DEPTARGETS_CLEAN) $(EXTRA_FILES) + $(RM) $(OBJS) $(DEPTARGETS_CLEAN) $(EXTRA_FILES) et-[ch]-*.et et-[ch]-*.[ch] -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache clean-windows:: diff --git a/src/config/pre.in b/src/config/pre.in index 1a8185bc7..a22c39742 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -442,12 +442,17 @@ COMPILE_ET-k5= $(BUILDTOP)/util/et/compile_et -d $(SRCTOP)/util/et #.et.c: ; $(COMPILE_ET) $< .et.h: - d=ettmp$$$$ ; (cp $< $$d.et && $(COMPILE_ET) $$d.et && mv $$d.h $*.h) ; \ - e=$$? ; rm -f $$d.* ; exit $$e - + $(RM) et-h-$*.et et-h-$*.c et-h-$*.h + $(CP) $< et-h-$*.et + $(COMPILE_ET) et-h-$*.et + $(MV) et-h-$*.h $*.h + $(RM) et-h-$*.et et-h-$*.c .et.c: - d=ettmp$$$$ ; (cp $< $$d.et && $(COMPILE_ET) $$d.et && mv $$d.c $*.c) ; \ - e=$$? ; rm -f $$d.* ; exit $$e + $(RM) et-c-$*.et et-c-$*.c et-c-$*.h + $(CP) $< et-c-$*.et + $(COMPILE_ET) et-c-$*.et + $(MV) et-c-$*.c $*.c + $(RM) et-c-$*.et et-c-$*.h # rule to make object files # -- 2.26.2