From owner-cvs-all@FreeBSD.ORG Fri Apr 20 06:25:45 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B303A16A402; Fri, 20 Apr 2007 06:25:45 +0000 (UTC) (envelope-from fjoe@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFEC13C480; Fri, 20 Apr 2007 06:25:45 +0000 (UTC) (envelope-from fjoe@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3K6PjVH014751; Fri, 20 Apr 2007 06:25:45 GMT (envelope-from fjoe@repoman.freebsd.org) Received: (from fjoe@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3K6PjMa014750; Fri, 20 Apr 2007 06:25:45 GMT (envelope-from fjoe) Message-Id: <200704200625.l3K6PjMa014750@repoman.freebsd.org> From: Max Khon Date: Fri, 20 Apr 2007 06:25:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/make main.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 06:25:45 -0000 fjoe 2007-04-20 06:25:45 UTC FreeBSD src repository Modified files: usr.bin/make main.c Log: When remaking makefiles check that mtime has actually changed. This fixes infinite restart in the following case: Makefile: foo foo: bar do-something Unlike GNU make, BSD make considers "Makefile" node as remade even if "foo" is up-to-date and was not actually rebuilt. GNU make does not consider nodes without commands as remade if child nodes were not actually rebuilt. Most probably, more proper fix would be to bring BSD make behaviour in-line with GNU make but this would be more intrusive change. Revision Changes Path 1.162 +14 -3 src/usr.bin/make/main.c