If Amarok is to be built from source the Qt Script Generator at http://code.google.com/p/qtscriptgenerator/ is required. However after going through the compile steps in the package, the following errors are encountered
make: Entering directory
make: *** No rule to make target
`../../generated_cpp/com_trolltech_qt_phonon/main.cpp', needed by `debug/main.o'. Stop.
make: Leaving directory
make: *** [debug] Error 2
The problem was reported on http://code.google.com/p/qtscriptgenerator/issues/detail?id=3 and a possible workaround is available at http://code.google.com/p/qtscriptgenerator/issues/detail?id=39 . Downloading the patch at this URL and applying it to the qtscriptgenerator source helps address the issue.
Hope this helps