Relocated Makefile logic
Signed-off-by: Oliver Lorenz <olli@olorenz.org>

Relocated Makefile content from plugins directory to main Makefile
to avoid cpluff loading errors when it recursively tries to load the plugins.