Recompile source after error 

Newsgroups:  gmane.linux.debian.user
Date:        Thu, 8 Jul 2004 03:24:04 +0100 (BST)
> I was trying to compile the emacs from source deb package. The compilation
> stopped in the middle because of some error.  If I use dpkg-buildpackage,
> everything will be started all over again.  Which command I can use to
> start from where I was left?

There is a document on the debian webpage called the "Debian New Maintainers' Guide". It describes the basics of making a deb package. The part you want is the "quick rebuild" of the "build" chapter at:

http://www.debian.org/doc/maint-guide/ch-build.en.html#s-quickrebuild

"6.2 Quick rebuild
With a large package, you may not want to rebuild from scratch
every time while you tune a detail in debian/rules. For
testing purposes, you can make a .deb file without rebuilding
the upstream sources like this:
fakeroot debian/rules binary
Once you are finished with your tuning, remember to rebuild
following the above, proper procedure. You may not be able to
upload correctly if you try to upload .deb files built this
way."

Bijan Soleymani