Install error

When i do

make clean; make install

i get the following error

make clean; make install

make: -F.: Command not found
rm -f defaults.h
rm -f include/asterisk/build.h
rm -f main/version.c
rm -f include/asterisk/version.h
make[1]: Entering directory /var/phone-system/asterisk-' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o make[1]: Leaving directory/var/phone-system/asterisk-’
cp -f .cleancount .lastclean
make: -F.: Command not found

**** The configure script must be executed before running ‘make’.
**** Please run “./configure”.

make: *** [makeopts] Error 1
[root@s15343255 asterisk-]#

so i run ./configure and get the next error

checking how to run the C++ preprocessor… /lib/cpp
configure: error: C++ preprocessor “/lib/cpp” fails sanity check
See `config.log’ for more details.

any suggestions?

You have to install compilers etc - and there are differences depending of distribution.
You can google: asterisk install
or something alike - and most likely you will get what you must install first before building.
Be aware you have to run:
make install
You must run “make” after “make clean” (before make install) if you want “make clean”