summaryrefslogtreecommitdiff
path: root/default.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-10-15 07:00:58 +0000
committerPaul Smith <psmith@gnu.org>1999-10-15 07:00:58 +0000
commit586087cd9a44c63bab17e4399dff685517005784 (patch)
tree20d000099ba9c0723a3c4d8925adba97aee4f2dc /default.c
parenta8725cb9a149dec9fe6dde06d72a3cb6714c84e5 (diff)
downloadmake-586087cd9a44c63bab17e4399dff685517005784.tar.gz
* Fix PR/1394.
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
Diffstat (limited to 'default.c')
-rw-r--r--default.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/default.c b/default.c
index 79f313ea..8ad37e1a 100644
--- a/default.c
+++ b/default.c
@@ -328,8 +328,7 @@ static char *default_variables[] =
/* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
and to the empty string if $@ does exist. */
"CHECKOUT,v",
- "+$(patsubst $@-noexist,$(CO) $(COFLAGS) $< $@,\
- $(filter-out $@,$(firstword $(wildcard $@) $@-noexist)))",
+ "+$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)",
"CO", "co",
"CPP", "$(CC) -E",