can't we move this chunk inside lib/Makefile ?