mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
RJK's `make install' patch for the Unix makefile.
[originally from svn r2163]
This commit is contained in:
parent
79b086658d
commit
28a75f8b84
25
mkfiles.pl
25
mkfiles.pl
@ -255,6 +255,16 @@ sub progrealnames {
|
|||||||
return @ret;
|
return @ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub manpages {
|
||||||
|
my ($types,$suffix) = @_;
|
||||||
|
|
||||||
|
# assume that all UNIX programs have a man page
|
||||||
|
if($suffix eq "1" && $types =~ /X/) {
|
||||||
|
return map("$_.1", &progrealnames($types));
|
||||||
|
}
|
||||||
|
return ();
|
||||||
|
}
|
||||||
|
|
||||||
# Now we're ready to output the actual Makefiles.
|
# Now we're ready to output the actual Makefiles.
|
||||||
|
|
||||||
##-- CygWin makefile
|
##-- CygWin makefile
|
||||||
@ -504,6 +514,14 @@ print
|
|||||||
"\n".
|
"\n".
|
||||||
&splitline("CFLAGS = -Wall -g -I. -I.. `gtk-config --cflags`")."\n".
|
&splitline("CFLAGS = -Wall -g -I. -I.. `gtk-config --cflags`")."\n".
|
||||||
"LDFLAGS = `gtk-config --libs`\n".
|
"LDFLAGS = `gtk-config --libs`\n".
|
||||||
|
"INSTALL=install\n",
|
||||||
|
"INSTALL_PROGRAM=\$(INSTALL)\n",
|
||||||
|
"INSTALL_DATA=\$(INSTALL)\n",
|
||||||
|
"prefix=/usr/local\n",
|
||||||
|
"exec_prefix=\$(prefix)\n",
|
||||||
|
"bindir=\$(exec_prefix)/bin\n",
|
||||||
|
"mandir=\$(prefix)/man\n",
|
||||||
|
"man1dir=\$(mandir)/man1\n",
|
||||||
"\n".
|
"\n".
|
||||||
".SUFFIXES:\n".
|
".SUFFIXES:\n".
|
||||||
"\n".
|
"\n".
|
||||||
@ -529,5 +547,12 @@ print
|
|||||||
"\t\$(CC) \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) \$(VER) -c ../version.c\n".
|
"\t\$(CC) \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) \$(VER) -c ../version.c\n".
|
||||||
"clean:\n".
|
"clean:\n".
|
||||||
"\trm -f *.o". (join "", map { " $_" } &progrealnames("X")) . "\n".
|
"\trm -f *.o". (join "", map { " $_" } &progrealnames("X")) . "\n".
|
||||||
|
"\n",
|
||||||
|
"install:\n",
|
||||||
|
map("\t\$(INSTALL_PROGRAM) -m 755 $_ \$(bindir)/$_\n", &progrealnames("X")),
|
||||||
|
map("\t\$(INSTALL_DATA) -m 644 $_ \$(man1dir)/$_\n", &manpages("X", "1")),
|
||||||
|
"\n",
|
||||||
|
"install-strip:\n",
|
||||||
|
"\t\$(MAKE) install INSTALL_PROGRAM=\"\$(INSTALL_PROGRAM) -s\"\n",
|
||||||
"\n";
|
"\n";
|
||||||
select STDOUT; close OUT;
|
select STDOUT; close OUT;
|
||||||
|
Loading…
Reference in New Issue
Block a user