How to run make file from any directory?
Problem
In order to run make file, I am supposed to go to the make file's directory and from there only I can run the make file. How can I do the same even if i am in any directory?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to run make file from any directory?
General solution will not change your shell's current directory (because the brackets contents are run in a subshell), but will run with the indicated working directory. The will ensure that doesn't run if there's an error in the part of the command (e.g., the directory doesn't exist, or you don't have access to it). The above approach is useful for all sorts of commands, not just . For this reason it is worth learning and remembering. Specific solution Check the man page for a option, e.g. Sev…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix