title: Makefile variable and loop
body: <p>I've got some makefile generated by conan which is included by my main Makefile. That generated Makefile (conanbuildinfo.mak) contains some variable lets say it is something like this:</p>
  
  <p><code>CONAN_LIBS = librarya libraryb libraryc</code></p>
  
  <p>Starting with this in my main makefile:</p>
  
  <p><code>LIBS=-lsocket</code></p>
  
  <p>I'd like to achieve following end result:</p>
  
  <p><code>LIBS=-lsocket -llibrarya -llibraryb -llibraryc</code></p>
  
  <p>so iterate over $CONAN_LIBS and add each variable with -l prefix to LIBS.</p>
  
  <p>How can I do it? :)</p>