lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master eb5f30b7 09/13: Disentangle another condition


From: Greg Chicares
Subject: [lmi-commits] [lmi] master eb5f30b7 09/13: Disentangle another conditional
Date: Tue, 7 Jun 2022 16:39:10 -0400 (EDT)

branch: master
commit eb5f30b77f255f0e97c27cdada0f6f4bcd396392
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Disentangle another conditional
---
 workhorse.make | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/workhorse.make b/workhorse.make
index cf1dc8b5..f1b6fa30 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -106,11 +106,14 @@ ifneq (x86_64-pc-linux-gnu,$(LMI_TRIPLET))
   excluded_default_targets += test_coding_rules$(EXEEXT)
 endif
 
-# 'test_coding_rules' is incompatible with $(USE_SO_ATTRIBUTES)
-# because it uses no shared library.
+# Many targets are incompatible with $(USE_SO_ATTRIBUTES) because they
+# use no shared libraries.
 
 ifdef USE_SO_ATTRIBUTES
-  excluded_default_targets += test_coding_rules$(EXEEXT)
+  excluded_default_targets += \
+    product_files$(EXEEXT) \
+    test_coding_rules$(EXEEXT) \
+
 endif
 
 # Effective default target (described above under "Default target").
@@ -121,6 +124,7 @@ default_targets := \
   libantediluvian$(SHREXT) \
   liblmi$(SHREXT) \
   lmi_cli_shared$(EXEEXT) \
+  product_files$(EXEEXT) \
   test_coding_rules$(EXEEXT) \
 
 # For targets that depend on wx, build type 'safestdlib' requires a
@@ -139,9 +143,6 @@ ifneq (safestdlib,$(findstring safestdlib,$(build_type)))
   endif
 endif
 
-# The product_files target doesn't build with shared-library
-# 'attributes'.
-
 ifeq (,$(USE_SO_ATTRIBUTES))
   default_targets += \
     bcc_ar$(EXEEXT) \
@@ -154,11 +155,6 @@ ifeq (,$(USE_SO_ATTRIBUTES))
     lmi_md5sum$(EXEEXT) \
     rate_table_tool$(EXEEXT) \
 
-  ifneq (so_test,$(findstring so_test,$(build_type)))
-    default_targets += \
-      product_files$(EXEEXT) \
-
-  endif
 endif
 
 default_targets := \
@@ -1103,10 +1099,8 @@ install: $(default_targets)
        @$(INSTALL) -c -m 0664 $(data_files) $(datadir)
        @$(INSTALL) -c -m 0664 $(help_files) $(datadir)
        @datadir=$(datadir) srcdir=$(srcdir) $(srcdir)/mst_to_xst.sh
-ifeq (,$(USE_SO_ATTRIBUTES))
+ifndef USE_SO_ATTRIBUTES
        @cd $(datadir); $(PERFORM) $(bindir)/product_files$(EXEEXT)
-else
-       @$(ECHO) "Can't build product_files$(EXEEXT) with USE_SO_ATTRIBUTES."
 endif
 
 
################################################################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]