Fix dependency checking with bmake
gmake always includes files relative to the current directory, while bmake includes them relative to the current Makefile - and current Makefile means the current include. However, bmake has a variable .CURDIR that always points to the current directory, but is missing in gmake. Thus, .CURDIR is just set to "." if it's not set and always in the include, thus making it work with both, bmake and gmake.
This commit is contained in:
parent
271b94aa6b
commit
313384fdfe
1 changed files with 2 additions and 1 deletions
|
@ -797,4 +797,5 @@ INSTALL_FAILED = err=$$?; printf "@TERM_EL@@TERM_SETAF1@Failed to install @TERM_
|
|||
DELETE_OK = printf "@TERM_EL@@TERM_SETAF4@Deleted @TERM_BOLD@$$i@TERM_SGR0@@TERM_SETAF4@.@TERM_SGR0@\n"
|
||||
DELETE_FAILED = err=$$?; printf "@TERM_EL@@TERM_SETAF1@Failed to delete @TERM_BOLD@$$i@TERM_SGR0@@TERM_SETAF1@!@TERM_SGR0@\n"; exit $$err
|
||||
|
||||
include .deps
|
||||
.CURDIR ?= .
|
||||
include ${.CURDIR}/.deps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue