mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:39:26 +02:00
* add path of make to SEARCHPATH
This commit is contained in:
parent
6ec9da620b
commit
964de0b20a
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,8 @@ SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
|
|||||||
else
|
else
|
||||||
SEARCHPATH:=$(subst ;, ,$(PATH))
|
SEARCHPATH:=$(subst ;, ,$(PATH))
|
||||||
endif
|
endif
|
||||||
|
# Add path were make is located
|
||||||
|
SEARCHPATH+=$(patsubst %/,%,$(dir $(MAKE)))
|
||||||
|
|
||||||
# Search for PWD and determine also if we are under linux
|
# Search for PWD and determine also if we are under linux
|
||||||
PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
|
PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
|
||||||
|
Loading…
Reference in New Issue
Block a user