title: Check if sub directories are present in ./work when it is created inside makefile?
body: <p>In my makefile, I want to check if sub directories are present in a given folder.
  This is how I am doing it now..</p>
  
  <pre><code>setup:
        mkdir -p ./work
  
  DIR=$(shell find ./work -maxdepth 0 -type d -print)
  check:
       if [-z $(DIR) ]; then \
         echo "null" ; \
       else  \
         echo "present" ; \
       fi;
  </code></pre>
  
  <p>I cannot create the ./work outside the makefile. So the problem is that since ./work is created inside the makefile, it gives me an  error/warning that ./work is not present before actually executing the script. </p>
  
  <p>Is there a way to check if sub directories are present in ./work when it is created inside makefile? </p>