The build is failing because the manpage directory does not exist. Before the `cp`, you should add something like `mkdir -p $(BUILD)/share/man/man1`.