]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - mk-1st.awk
ncurses 6.2 - patch 20211016
[ncurses.git] / mk-1st.awk
index beb8911f88cf2a28e649c647a5c8d7bbde6e80b0..30638c352175e8f3967ea52307cedf3a2cebc55b 100644 (file)
@@ -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";
                                        }
                                }