Problems with res_sqlite3 and asterisk 1.2.0 rc2

I am trying to have a play with the sqlite3 module to see if I can get realtime working with sqlite. but I am having a problem getting it to install.
The following is what I get

[root@opox res_sqlite3]# make clean; make install
/bin/rm -f *.o *.so *~
/usr/src/asterisk-1.2.0-rc2/contrib/scripts/astxs -autoload -install
make[1]: *** No rule to make target `apps_env'.  Stop.
/bin/mkdir -p /var/lib/asterisk/sqlite
if [ ! -f  /etc/asterisk/res_sqlite.conf ] ; then /bin/cp res_sqlite.conf /etc/asterisk; fi

I think the problem may be that there is no asterisk directory (only asterisk-1.2.0-rc2). Any Ideas?[/code]