[fpc-devel]fpcmake

darekM darekm at emadar.com
Sat Oct 11 23:43:59 CEST 2003


If we change FPCMAKE to generate code like this:
---------------------
#add dir of make.exe to PATH
override PATH +=$(dir $(MAKE))    <-----------------
override PATH:=$(subst \,/,$(PATH))
#$(error $(PATH))
ifeq ($(findstring ;,$(PATH)),)
inUnix=1
SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
else
SEARCHPATH:=$(subst ;, ,$(PATH))
endif
PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))

# if dir has backslash on the end then search fail
ifeq ($(PWD),)             <-------------
PWD:=$(strip $(wildcard $(addsuffix pwd.exe,$(SEARCHPATH))))   <-----------
endif   <---------------



ifeq ($(PWD),)
PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
ifeq ($(PWD),)
$(error You need the GNU utils package to use this Makefile)
else

---------------
then we will be able to do MAKE without change  PATH in AUTOEXEC.BAT

with this command:
C:\PP\BIN\WIN32\MAKE


Darek


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20031011/1ee9e341/attachment.html>


More information about the fpc-devel mailing list