--- firemake/man.orig 2014-05-20 14:45:41.801589832 +0800 +++ firemake/man 2014-05-20 14:46:24.364609956 +0800 @@ -38,7 +38,7 @@ case $PHASE in if test "$MAN1" != ""; then dispn " Section 1..." for MAN in $MAN1; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man1 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man1 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi @@ -46,7 +46,7 @@ case $PHASE in if test "$MAN3" != ""; then dispn " Section 3..." for MAN in $MAN3; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man3 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man3 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi @@ -54,7 +54,7 @@ case $PHASE in if test "$MAN5" != ""; then dispn " Section 5..." for MAN in $MAN5; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man5 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man5 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi @@ -62,7 +62,7 @@ case $PHASE in if test "$MAN6" != ""; then dispn " Section 6..." for MAN in $MAN6; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man6 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man6 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi @@ -70,7 +70,7 @@ case $PHASE in if test "$MAN7" != ""; then dispn " Section 7..." for MAN in $MAN7; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man7 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man7 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi @@ -78,7 +78,7 @@ case $PHASE in if test "$MAN8" != ""; then dispn " Section 8..." for MAN in $MAN8; do - $ECHO " $INSTALL $MAN \$(MANDIR)/man8 $INSTALL_USER $INSTALL_GROUP 0644" + $ECHO " $INSTALL $MAN \$(DESTDIR)\$(MANDIR)/man8 $INSTALL_USER $INSTALL_GROUP 0644" done disp "done" fi