make script generation safer

This commit is contained in:
David MacKenzie 1994-10-02 04:34:29 +00:00
parent 1c17f25a0b
commit f0fb5f6da6
2 changed files with 6 additions and 8 deletions

View File

@ -79,11 +79,11 @@ all: ${PROGS}
.sh:
rm -f $@ $@.tmp
$(editsh) $< > $@.tmp && mv $@.tmp $@ && chmod +x $@
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
$(editpl) $< > $@.tmp && mv $@.tmp $@ && chmod +x $@
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
info: autoconf.info @standards_info@ INSTALL
@ -159,8 +159,7 @@ configure: configure.in $(M4FILES)
cd $(srcdir); \
rm -f $@ $@.tmp; \
$(M4) autoconf.m4 configure.in > $@.tmp && \
mv $@.tmp $@ && \
chmod +x $@
chmod +x $@.tmp && mv $@.tmp $@
Makefile: Makefile.in config.status
./config.status
config.status: configure

View File

@ -79,11 +79,11 @@ all: ${PROGS}
.sh:
rm -f $@ $@.tmp
$(editsh) $< > $@.tmp && mv $@.tmp $@ && chmod +x $@
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
$(editpl) $< > $@.tmp && mv $@.tmp $@ && chmod +x $@
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
info: autoconf.info @standards_info@ INSTALL
@ -159,8 +159,7 @@ configure: configure.in $(M4FILES)
cd $(srcdir); \
rm -f $@ $@.tmp; \
$(M4) autoconf.m4 configure.in > $@.tmp && \
mv $@.tmp $@ && \
chmod +x $@
chmod +x $@.tmp && mv $@.tmp $@
Makefile: Makefile.in config.status
./config.status
config.status: configure