From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9289B138A1A for ; Fri, 23 Jan 2015 18:57:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6658BE08A2; Fri, 23 Jan 2015 18:57:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1AE2EE08A2 for ; Fri, 23 Jan 2015 18:57:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 01344340739 for ; Fri, 23 Jan 2015 18:57:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9ECE10376 for ; Fri, 23 Jan 2015 18:57:39 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1422039151.fbdd669ba7c5d1a67129236b4ffcd76198340a1b.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: / X-VCS-Repository: proj/openrc X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: fbdd669ba7c5d1a67129236b4ffcd76198340a1b X-VCS-Branch: master Date: Fri, 23 Jan 2015 18:57:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a14e9ccd-3533-44e5-978c-3c418aada6a4 X-Archives-Hash: 99d40cc320f3eddce95f7034f81d6179 commit: fbdd669ba7c5d1a67129236b4ffcd76198340a1b Author: William Hubbs gmail com> AuthorDate: Fri Jan 23 18:52:31 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jan 23 18:52:31 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=fbdd669b Makefile: add variable for path to source tree Add a new variable, ${TOP}, to the top level makefile, which points to the path of the source tree. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6e9198c..dd06bdd 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,10 @@ # Copyright (c) 2007-2009 Roy Marples # Released under the 2-clause BSD license. -include Makefile.inc +TOP:= ${dir ${realpath ${firstword ${MAKEFILE_LIST}}}} +MK= ${TOP}/mk + +include ${TOP}/Makefile.inc SUBDIR= conf.d etc init.d local.d man scripts sh src sysctl.d @@ -17,7 +20,6 @@ SUBDIR+= runlevels INSTALLAFTER= _installafter -MK= mk include ${MK}/sys.mk include ${MK}/os.mk include ${MK}/subdir.mk