'Arquivo make file para entrar em pastas [closed]

I have a MakeFile file in the following way:

conf:
    cd teste
    nano teste

However, when i execute make conf, he does not enter in the directory that i specified. How can i access different directories with makefile?



Solution 1:[1]

Each command in a makefile recipe acts in its own sub-shell. The first command begins in the working directory, enters teste/ and dies; the second command begins in the working directory, and fails.

Here is one solution:

conf:
    cd teste; nano teste

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Beta