summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-02-21 07:30:11 +0000
committerPaul Smith <psmith@gnu.org>2011-02-21 07:30:11 +0000
commit936d622e598a735a176cfb990f2ed0828e8905f1 (patch)
tree4f414cb592087bed30a3563174c554f155a229f6 /remake.c
parent03e2347f92e6484f2a4b6df5ee98b846f38ff4df (diff)
downloadmake-936d622e598a735a176cfb990f2ed0828e8905f1.tar.gz
* Fixups to the make man page
* Minor syntax cleanups in the manual * In non-maintainer mode set NDEBUG to disable assert() * Performance improvements in strcache: Build Info 1000 2000 4000 3.82 -g 2.61s 8.85s 33.52s 3.82 -O2 1.90s 7.62s 27.82s New -g (with asserts) 1.03s 2.31s 5.79s New -O2 (no asserts) 0.65s 1.50s 3.52s
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/remake.c b/remake.c
index 27d25506..97e38546 100644
--- a/remake.c
+++ b/remake.c
@@ -355,11 +355,6 @@ update_file (struct file *file, unsigned int depth)
static void
complain (struct file *file)
{
- const char *msg_noparent
- = _("%sNo rule to make target `%s'%s");
- const char *msg_parent
- = _("%sNo rule to make target `%s', needed by `%s'%s");
-
/* If this file has no_diag set then it means we tried to update it
before in the dontcare mode and failed. The target that actually
failed is not necessarily this file but could be one of its direct
@@ -379,6 +374,11 @@ complain (struct file *file)
if (d == 0)
{
+ const char *msg_noparent
+ = _("%sNo rule to make target `%s'%s");
+ const char *msg_parent
+ = _("%sNo rule to make target `%s', needed by `%s'%s");
+
/* Didn't find any dependencies to complain about. */
if (!keep_going_flag)
{