X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mk-1st.awk;h=30638c352175e8f3967ea52307cedf3a2cebc55b;hp=beb8911f88cf2a28e649c647a5c8d7bbde6e80b0;hb=95bcbd4bb8e933c86e6fc4aba9ea1c7fd3d30e3d;hpb=ac1479a2aceab5094e64da97ae11dde43c942d7a diff --git a/mk-1st.awk b/mk-1st.awk index beb8911f..30638c35 100644 --- a/mk-1st.awk +++ b/mk-1st.awk @@ -1,4 +1,4 @@ -# $Id: mk-1st.awk,v 1.122 2021/07/18 18:47:20 tom Exp $ +# $Id: mk-1st.awk,v 1.124 2021/10/15 00:50:05 tom Exp $ ############################################################################## # Copyright 2018-2020,2021 Thomas E. Dickey # # Copyright 1998-2016,2017 Free Software Foundation, Inc. # @@ -62,7 +62,7 @@ # 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$/ ); @@ -477,10 +477,6 @@ END { { 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; @@ -511,8 +507,10 @@ END { 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"; } }