Checking if a directory exists within makefile
Hi,
I'm having trouble with a makefile I'm trying to write that uses a bash command to test for the existence of a certain directory. Here is the makefile: Code:
DEBUG= Code:
josh@josh-Dell-XPS420:~/Desktop/Diminisher/Version 1$ make |
Try to store the full path of bin in the variable BIN like:
Quote:
And also in the script mention like this: Quote:
|
Quote:
The problem is that make assumes each line is a separate command. If you want a command to span multiple lines, you need to backslash escape them (except for the last one, of course), like so: Code:
$(BIN): |
I tried the backslashes because that thought came into my mind.. just forgot the semicolon. Thanks lej.
|
All times are GMT -5. The time now is 07:29 PM. |