buildsystem: Adapt 'Makefile' to hierarchical package structure.