In the Makefile, there is defined an operation to compile the latex files inside the folder tex. In order to do this, we need to operate the files inside tex, for which we need to do the cd tex and then do the operations. Ideally, the .ONESHELL command on the top of the Makefile should make all the code inside a recipe executable in the same shell, but this is currently not working. For example, we can do
.ONESHELL:
SHELL = /bin/bash
foo:
cd tex; pwd
pwd
and see that the directory hasn't changed between lines. Not sure why this is not working, but it will be good to remove the extra cd tex commands from the Makefile.
In the
Makefile, there is defined an operation to compile the latex files inside the foldertex. In order to do this, we need to operate the files insidetex, for which we need to do thecd texand then do the operations. Ideally, the.ONESHELLcommand on the top of theMakefileshould make all the code inside a recipe executable in the same shell, but this is currently not working. For example, we can doand see that the directory hasn't changed between lines. Not sure why this is not working, but it will be good to remove the extra
cd texcommands from theMakefile.