1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Add support for a DESTDIR variable in the Unix makefile to set the root of the

installation tree (for building packages etc).

[originally from svn r3433]
This commit is contained in:
Ben Harris 2003-09-01 21:27:36 +00:00
parent eebc7529ed
commit f68c785aa4

View File

@ -586,8 +586,8 @@ print
"\trm -f *.o". (join "", map { " $_" } &progrealnames("XU")) . "\n". "\trm -f *.o". (join "", map { " $_" } &progrealnames("XU")) . "\n".
"\n", "\n",
"install:\n", "install:\n",
map("\t\$(INSTALL_PROGRAM) -m 755 $_ \$(bindir)/$_\n", &progrealnames("XU")), map("\t\$(INSTALL_PROGRAM) -m 755 $_ \$(DESTDIR)\$(bindir)/$_\n", &progrealnames("XU")),
map("\t\$(INSTALL_DATA) -m 644 $_ \$(man1dir)/$_\n", &manpages("XU", "1")), map("\t\$(INSTALL_DATA) -m 644 $_ \$(DESTDIR)\$(man1dir)/$_\n", &manpages("XU", "1")),
"\n", "\n",
"install-strip:\n", "install-strip:\n",
"\t\$(MAKE) install INSTALL_PROGRAM=\"\$(INSTALL_PROGRAM) -s\"\n", "\t\$(MAKE) install INSTALL_PROGRAM=\"\$(INSTALL_PROGRAM) -s\"\n",