From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 30 03:01:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5E2E1065673 for ; Sun, 30 Nov 2008 03:01:56 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 77ED98FC22 for ; Sun, 30 Nov 2008 03:01:56 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so770177yxb.13 for ; Sat, 29 Nov 2008 19:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; bh=sZ3pawAtQuS5Lug7LCBTg8mi4jMLM2lTv7EPy1KsniU=; b=mg8IL59VmyqAra+MqVQEbS6Fn4k8cGV1EpnbARIs9KjLw0KiWRKynZDL66an9PSCzN 97CeEImo4TXK1YZy3zj0UrHzYhZTW13bREDKxowfzLvpUl5yFPyYUyXnoCUtv1RRRwW6 iFKuBoyZTr7XB4uPHbkKWLHM3Xlz+jG202SQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; b=Bso+QUCvkv7gjILUOXH6x/spmgD1xZkXj1TILzh1Y4eQS/gXZpIzyX74Wg7uo+4iJL diPE9oqTn+pKPRViQsF620haaWExSHILjySJQue8IEAbuBDvOORzqIHkGYC43HRXYeve /7e8VFSVDJP7AOIPvsIuu23eebnF4Txo1P5rA= Received: by 10.90.30.2 with SMTP id d2mr5220819agd.58.1228014115817; Sat, 29 Nov 2008 19:01:55 -0800 (PST) Received: from aargh.lan (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id 7sm3250200aga.13.2008.11.29.19.01.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Nov 2008 19:01:54 -0800 (PST) Message-ID: <49320219.4070804@gmail.com> Date: Sat, 29 Nov 2008 22:01:45 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Subject: change to make - error when Makefile doesn't exist X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 03:01:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I stupidly forgot to make a backup so I can't provide a diff but in src/usr.bin I changed TryReadMakefile("Makefile"); to if (!TryReadMakefile("Makefile")) Fatal("Makefile could not be opened"); That way you could differentiate between the Makefile not existing and the target not existing. gmake provided the following error message: gmake: *** No targets specified and no makefile found. Stop. - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkyAhkACgkQtl8kq+nCzNEhygCeLZAXcYWje2/95sBkTHKhiwbQ +RAAn0jzYxVngGC8NnpSXXpHgIlQnQN+ =6as2 -----END PGP SIGNATURE-----