commit: fbdd669ba7c5d1a67129236b4ffcd76198340a1b Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Fri Jan 23 18:52:31 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> 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 <r...@marples.name> # 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