generalize build commands

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>