dts, api, test: convert makefiles to Kbuild style