Makefile: only check lexmin if it has been compiled