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.
Here's an example if:
ifeq ($(strip $(OS)),Linux) PYTHON = /usr/bin/python FIND = /usr/bin/find endif
Note that this comes with a word of warning that different versions of Make have slightly different syntax, none of which seems to be documented very well.