[6/7] ld: build with mktemp
Commit Message
---
ld/Makefile.am | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
@@ -543,12 +543,14 @@ SRC_POTFILES = $(CFILES) $(HFILES)
BLD_POTFILES = $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES)
po/SRC-POTFILES.in: @MAINT@ Makefile
- for f in $(SRC_POTFILES); do echo $$f; done | LC_ALL=C sort > $@-tmp \
- && mv $@-tmp $(srcdir)/po/SRC-POTFILES.in
+ tmp=`mktemp --tmpdir=. SRC-POTFILES.XXXXXX.in`; \
+ for f in $(SRC_POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \
+ && mv $$tmp $(srcdir)/po/SRC-POTFILES.in
po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
- for f in $(BLD_POTFILES); do echo $$f; done | LC_ALL=C sort > $@-tmp \
- && mv $@-tmp $(srcdir)/po/BLD-POTFILES.in
+ tmp=`mktemp --tmpdir=. BLD-POTFILES.XXXXXX.in`; \
+ for f in $(BLD_POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \
+ && mv $$tmp $(srcdir)/po/BLD-POTFILES.in
ldmain.@OBJEXT@: ldmain.c config.status
if am__fastdepCC
@@ -600,6 +602,7 @@ endif
endif
ldemul-list.h: Makefile
+ tmp=`mktemp --tmpdir=. ldemul-list.XXXXXX.h`; \
(echo "/* This file is automatically generated. DO NOT EDIT! */";\
for f in `echo " " ${EMULATION_OFILES} "" \
| sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
@@ -611,8 +614,8 @@ ldemul-list.h: Makefile
| sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
echo " &ld_$${f}_emulation, \\"; \
done;\
- echo " 0") >ldemul-tmp.h
- mv ldemul-tmp.h ldemul-list.h
+ echo " 0") >$$tmp; \
+ mv $$tmp ldemul-list.h
stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
$(AM_V_GEN)cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed