Split Makefile to handle extension and app separately