diff options
| author | rillig <rillig@NetBSD.org> | 2020-11-21 10:51:26 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-11-21 10:51:26 +0000 |
| commit | 9bc2633ddee7adbb02a4efa5eaa3cf44c23389ce (patch) | |
| tree | 1a6e642ef9e857f36b2adf2a9a163b783d2c1db4 /usr.bin/make/make.c | |
| parent | dd50f08f998b82a0e8143ad45072bf23650f5c3e (diff) | |
make(1): fix indentation in Make_HandleUse
Diffstat (limited to 'usr.bin/make/make.c')
| -rw-r--r-- | usr.bin/make/make.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c index d0502e80c8e..dcff2c50034 100644 --- a/usr.bin/make/make.c +++ b/usr.bin/make/make.c @@ -1,4 +1,4 @@ -/* $NetBSD: make.c,v 1.209 2020/11/16 22:31:42 rillig Exp $ */ +/* $NetBSD: make.c,v 1.210 2020/11/21 10:51:26 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -102,7 +102,7 @@ #include "job.h" /* "@(#)make.c 8.1 (Berkeley) 6/6/93" */ -MAKE_RCSID("$NetBSD: make.c,v 1.209 2020/11/16 22:31:42 rillig Exp $"); +MAKE_RCSID("$NetBSD: make.c,v 1.210 2020/11/21 10:51:26 rillig Exp $"); /* Sequence # to detect recursion. */ static unsigned int checked_seqno = 1; @@ -373,14 +373,14 @@ Make_HandleUse(GNode *cgn, GNode *pgn) } #endif - if ((cgn->type & (OP_USE|OP_USEBEFORE)) || Lst_IsEmpty(pgn->commands)) { - if (cgn->type & OP_USEBEFORE) { - /* .USEBEFORE */ - Lst_PrependAll(pgn->commands, cgn->commands); - } else { - /* .USE, or target has no commands */ - Lst_AppendAll(pgn->commands, cgn->commands); - } + if ((cgn->type & (OP_USE | OP_USEBEFORE)) || Lst_IsEmpty(pgn->commands)) { + if (cgn->type & OP_USEBEFORE) { + /* .USEBEFORE */ + Lst_PrependAll(pgn->commands, cgn->commands); + } else { + /* .USE, or target has no commands */ + Lst_AppendAll(pgn->commands, cgn->commands); + } } for (ln = cgn->children->first; ln != NULL; ln = ln->next) { |
