Compile with Emacs
From Apache OpenOffice Wiki
If you want to compile from within (X)Emacs, it's useful to have this script (that sources the env before running dmake) installed:
#!/bin/bash path=`pwd` env="LinuxIntelEnv.Set.sh" while ! test -f "$path/$env"; do path=`dirname $path` done . $path/$env perl $SOLARENV/bin/build.pl -i debug=true
in ~/bin. Just run oobuild with compile-command as you would 'make -k' normally.