Would you be willing to accept a patch to move the manpages from $(PREFIX)/man to $(PREFIX)/share/man? If so please see the attached. I have continued the pattern of your existing code, in which each directory in the hierarchy ($(PREFIX)/share, $(PREFIX)/share/man, $(PREFIX)/share/man/man1) is tested individually and created if absent. That's not exactly necessary since you are using "mkdir -p" which creates missing parent directories automatically. However my understanding is that "mkdir -p" is not completely portable and that its use should be avoided, so it might be best to keep the tests for each directory, and to create directories with "mkdir" (not "mkdir -p").