I wasn't sure whether to post this question under unix/linux programming so forgive me if this is the wrong forum section.
I made a makefile that has a recipe as follows:
run :
cd ..
other stuff
When I do this I get the following error:
1 2
The system cannot find the path specified.
make: *** [run] Error 1
So I tried to see if I could get around this using pushd .. but got this error:
1 2 3
process_begin: CreateProcess(NULL, pushd .., ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [run] Error 2
My goal is to use this makefile for packages in java. Since I can't have more than one makefile in a directory I thought if I just put it in a folder for each respective class(es). By having a make run I can execute test clients of classes in the package. Likewise I'd eventually like to employ this technique with c++.
The problem here is that even when I use the command cd .. it does not actually change directories. I tried cd ..&&myJavaCommand and it deos not recognize the shell in a new directory.