-# $Id: mk-1st.awk,v 1.122 2021/07/18 18:47:20 tom Exp $
+# $Id: mk-1st.awk,v 1.125 2023/04/22 15:49:59 tom Exp $
##############################################################################
-# Copyright 2018-2020,2021 Thomas E. Dickey #
+# Copyright 2018-2021,2023 Thomas E. Dickey #
# Copyright 1998-2016,2017 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
# Notes:
# CLIXs nawk does not like underscores in command-line variable names.
# Mixed-case variable names are ok.
-# HP/UX requires shared libraries to have executable permissions.
+# HP-UX requires shared libraries to have executable permissions.
#
function is_ticlib() {
return ( subset ~ /^ticlib$/ );
&& ( $1 != "link_test" ) \
&& ( $2 == "lib" \
|| $2 == "progs" \
- || $2 == "c++" \
- || $2 == "tack" ))
+ || $2 == "c++" ))
{
if ( found == 0 )
{
{
end_name = lib_name;
use_name = trim_suffix(TermlibRoot) USE_LIB_SUFFIX
- printf "# FIXME\n";
- printf "# name '%s'\n", name;
- printf "# end_name '%s'\n", end_name;
- printf "# use_name '%s'\n", use_name;
printf "../lib/%s : \\\n", lib_name
if ( (name != use_name ) && ( index(name, "++") == 0 ) && ( index(name, "tic") == 1 || index(name, "ncurses") == 1 ) ) {
printf "\t\t../lib/lib%s.la \\\n", use_name;
printf "\t\t$(DESTDIR)$(libdir) \\\n";
use_name = TermlibRoot USE_LIB_SUFFIX
if ( (name != use_name ) && ( index(name, "++") == 0 ) && ( index(name, "tic") == 1 || index(name, "ncurses") == 1 ) ) {
- printf "\t\tinstall.%s \\\n", trim_suffix(TermlibRoot);
- if ( index(name, "tic") == 1 && index(TermlibRoot, "ncurses") != 1 ) {
+ if ( trim_suffix(TermlibRoot) != trim_suffix(name) ) {
+ printf "\t\tinstall.%s \\\n", trim_suffix(TermlibRoot);
+ }
+ if ( index(name, "tic") == 1 && index(TermlibRoot, "ncurses") != 1 && trim_suffix(name) != "ncurses" ) {
printf "\t\tinstall.%s \\\n", "ncurses";
}
}