Re: Changing CWD of make while it's running

2016-05-15 Thread Paul Smith
On Sun, 2016-05-15 at 21:27 +0100, Lee Shallis wrote: > I initially tried using the $(shell chdir...) variant but later > realized my mistake there, I then went on to googling for possible > solutions to this, I'd rather not start up a new instance of make > just to apply an option to change the wo

Changing CWD of make while it's running

2016-05-15 Thread Lee Shallis
Here's the relevant snippet of my makefile code: HERE:=$(dir $(lastword $(MAKEFILE_LIST))) include $(TOPDIR)target.mk #include $(TOPDIR)mkfunc/chdir.mk CURDIR:=$(shell echo $(PWD))$(DIRSEP) # Directories PREPARE:=set tmp REPLACE:=%tmp:teh=the% #$(call chdir,$(CURDIR)$(TOPDIR)) WKSDIR:=$(shell echo