Tailor-made metal-organic frameworks from functionalized molecular building blocks and length-adjustable organic linkers by stepwise synthesis.