diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-08-25 10:58:54 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-08-25 10:58:54 +0000 |
commit | 65bc9373c72863f37fd76bfe2d40a69d191ec797 (patch) | |
tree | e1fbaeaa4223f631b94c58530e34209e546c767b /lib-src | |
parent | f7915de46107f3b6fb99efd442e5f37cfb2f3680 (diff) | |
download | emacs-65bc9373c72863f37fd76bfe2d40a69d191ec797.tar.gz |
(rcs2log, rcs-checkin, grep-changelog, vcdiff): Prepend "-" to the command,
in case srcdir=. and file is copied into itself.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/Makefile.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 1482ea6c5df..5d8da71dbdd 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -268,18 +268,21 @@ BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} /* These targets copy the scripts into the build directory -so that they can be run from there in an uninstalled Emacs. */ +so that they can be run from there in an uninstalled Emacs. +The "-" is prepended because some versions of cp barf when +srcdir is the current directory, and thus the file will be +copied into itself. */ rcs2log: $(srcdir)/rcs2log - cp -p $(srcdir)/rcs2log rcs2log + -cp -p $(srcdir)/rcs2log rcs2log rcs-checkin: $(srcdir)/rcs-checkin - cp -p $(srcdir)/rcs-checkin rcs-checkin + -cp -p $(srcdir)/rcs-checkin rcs-checkin grep-changelog: $(srcdir)/grep-changelog - cp -p $(srcdir)/grep-changelog grep-changelog + -cp -p $(srcdir)/grep-changelog grep-changelog vcdiff: $(srcdir)/vcdiff - cp -p $(srcdir)/vcdiff vcdiff + -cp -p $(srcdir)/vcdiff vcdiff #ifdef MOVEMAIL_NEEDS_BLESSING blessmail: |