Makefile: handle submodules