Build reference graph file at module installation.