detecting if a directory exists
Hi all,
can anyone help me with this problem (I have very little understanding of Linux commands). I have a makefile which I use a rm $(OBJECT_FOLDER) I then create it using mkdir, however the first time I run it the object folder does not exist so my makefile reports an error.
Is there a way I can detect if the folder exists? A sort of "if folder then remove old folder"
Thanks in advance
|