You can let make handle the change of directory for you by doing


make -C lab # make the default target in lab/Makefile
make -C lab foobar # make the foobar target in lab/Makefile

which...