diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-01-23 12:52:31 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-01-23 12:52:31 -0600 |
commit | fbdd669ba7c5d1a67129236b4ffcd76198340a1b (patch) | |
tree | ac06899aa967868cd7f58cd4bc239dd6d4c79a34 | |
parent | cddb4aad08615420320f75050042d946b18d2bb5 (diff) |
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.
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,7 +2,10 @@ # Copyright (c) 2007-2009 Roy Marples <roy@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 |