summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-12-22 22:31:07 +0000
committerRoland McGrath <roland@redhat.com>1992-12-22 22:31:07 +0000
commit40463f44104ed10960c25472fc76959909483ed2 (patch)
tree58b5dfd36f40d35a38172c38c349fef953ee497b /commands.c
parent01e07f8ae2b4118368aead169a551b72cc8c73f6 (diff)
downloadgunmake-40463f44104ed10960c25472fc76959909483ed2.tar.gz
Formerly commands.c.~13~
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index cd57e37..42b9b9e 100644
--- a/commands.c
+++ b/commands.c
@@ -130,6 +130,12 @@ set_file_variables (file)
DEFINE_VARIABLE ("%D", 2, DIRONLY (percent));
DEFINE_VARIABLE ("%F", 2, FILEONLY (percent));
+ /* Make sure that no dependencies are repeated. This does not
+ really matter for the purpose of updating targets, but it
+ might make some names be listed twice for $^ and $?. */
+
+ uniquize_deps (file->deps);
+
/* Compute the values for $^ and $? and their F and D versions. */
{