Can someone explain how to use if-then statements and for loops in Makefiles? I can\'t seem to find any good documentation with examples.
Have you tried the GNU make documentation? It has a whole section about conditionals with examples.