Wednesday, May 12, 2010

Multiple Target patterns error with mak files in android/linux

Gnu make looks for tab space after the target line.
For ex:
$(TARGETDIR)/test.lib : $(TEST_SRC)
$(group_test)

The above line in.mak file would throw multiple target patterns error.

correct format would be

$(TARGETDIR)/test.lib : $(TEST_SRC)
<adding tab space here>$(group_test).
 
Solution:
By giving  some tabspace it will compile without any problem.

No comments: