automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-ng] [PATCH 1/2] [ng] remake: don't depend explicitly on Makefi


From: Stefano Lattarini
Subject: [Automake-ng] [PATCH 1/2] [ng] remake: don't depend explicitly on Makefile
Date: Mon, 23 Apr 2012 23:01:07 +0200

* am/lib/configure.am (am--refresh): No need to explicitly depend
on %MAKEFILE%, as GNU make will always make sure %MAKEFILE% is
updated before considering the am--refresh target anyway.  Also,
this target don't need a recipe, so don't add any.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/configure.am |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/am/configure.am b/lib/am/configure.am
index 3fc2fc7..e0cd443 100644
--- a/lib/am/configure.am
+++ b/lib/am/configure.am
@@ -16,14 +16,12 @@
 
 
 ## This dummy rule is called from subdirectories whenever one of the
-## top-level Makefile's dependencies must be updated.  It does depend
-## on %MAKEFILE% for the benefit of non-GNU make implementations (GNU
-## make will always make sure %MAKEFILE% is updated before considering
-## the am--refresh target anyway).
+## top-level Makefile's dependencies must be updated; it relies on
+## the fact that GNU make always make sure the Makefile is updated
+## before considering the other rules.
 if %?TOPDIR_P%
 .PHONY: am--refresh
-am--refresh: %MAKEFILE%
-       @:
+am--refresh:
 endif %?TOPDIR_P%
 
 ## --------------------- ##
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]