lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 7a434503 06/13: Don't attempt to build "erron


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 7a434503 06/13: Don't attempt to build "erroneous" targets
Date: Tue, 7 Jun 2022 16:39:09 -0400 (EDT)

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

    Don't attempt to build "erroneous" targets
    
    This command:
    
      make \
        LMI_COMPILER=gcc \
        LMI_TRIPLET=x86_64-pc-linux-gnu \
        USE_SO_ATTRIBUTES=1 \
        check_concinnity
    
    no longer attempts to compile anything; instead, it emits:
    
      *** in context, cannot build "test_coding_rules".  Stop.
    
    Retained a somewhat similar test in 'GNUmakefile', because it gives
    a more informative error message.
---
 workhorse.make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/workhorse.make b/workhorse.make
index facfa037..cca05cc2 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -164,6 +164,12 @@ default_targets := \
 .PHONY: effective_default_target
 effective_default_target: $(default_targets)
 
+erroneous_targets := $(filter $(excluded_default_targets), $(MAKECMDGOALS))
+
+ifneq (,$(erroneous_targets))
+    $(error in context, cannot build "$(erroneous_targets)")
+endif
+
 
################################################################################
 
 # $(subst): workaround for debian, whose MinGW-w64 identifies its



reply via email to

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