build: combining similar makefiles