Merge the makefile and debian.mk

Preliminary step to sanitize the way we build the packages
and to simplify interaction with the regression tests.