Skip to content

Makefile not working with cd even with .ONESHELL preamble #3

Description

@facusapienza21

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.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions