Asterisk 10.1.2 compilation error

Hi,
I am compiling Asterisk 10.1.2 and getting the following errors.

updating cache ./config.cache
creating ./config.status
creating Makefile
creating makelist
creating config.h
make[1]: *** No rule to make target ../main/modules.link', needed byasterisk’. Stop.
make: *** [main] Error 2

any idea for the reason on this error.