Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
facusapienza21 opened this issue May 9, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@facusapienza21
Copy link
Member

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.

@facusapienza21 facusapienza21 added bug Something isn't working help wanted Extra attention is needed labels May 9, 2023
@facusapienza21 facusapienza21 self-assigned this May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant