aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-01-20 10:59:19 +0000
committerKen Raeburn <raeburn@mit.edu>2007-01-20 10:59:19 +0000
commitf1d252151ce0b21c9d94cbc24c965122eaea49fa (patch)
tree6c1c2af42dc79b81de3e7156e69ee163b349bae3 /src/config
parentafd6d6260f8460efb10e964beb26d94a2b0f8547 (diff)
downloadkrb5-f1d252151ce0b21c9d94cbc24c965122eaea49fa.zip
krb5-f1d252151ce0b21c9d94cbc24c965122eaea49fa.tar.gz
krb5-f1d252151ce0b21c9d94cbc24c965122eaea49fa.tar.bz2
* 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
Diffstat (limited to 'src/config')
-rw-r--r--src/config/post.in2
-rw-r--r--src/config/pre.in15
2 files changed, 11 insertions, 6 deletions
diff --git a/src/config/post.in b/src/config/post.in
index e997c55..6dc71ee 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 1a8185b..a22c397 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
#