[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d8ac666a 08/11: Generally avoid remaking make
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d8ac666a 08/11: Generally avoid remaking makefiles |
Date: |
Mon, 27 Jun 2022 19:56:08 -0400 (EDT) |
branch: master
commit d8ac666aaa957e6e92db1c1d0f869170d1b053cd
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Generally avoid remaking makefiles
---
autodependency.make | 6 ++++++
compiler.make | 6 ++++++
compiler_clang.make | 11 +++++++++++
compiler.make => compiler_clang_warnings.make | 13 +++----------
compiler_gcc.make | 11 +++++++++++
compiler.make => compiler_gcc_warnings.make | 15 ++++-----------
configuration.make | 8 +++++++-
msw_common.make | 4 +++-
msw_cygwin.make | 4 ++++
msw_generic.make | 4 ++++
msw_wsl.make | 4 ++++
objects.make | 4 ++++
posix_fhs.make | 4 ++++
workhorse.make | 2 +-
14 files changed, 72 insertions(+), 24 deletions(-)
diff --git a/autodependency.make b/autodependency.make
index acbc3aac..0e635582 100644
--- a/autodependency.make
+++ b/autodependency.make
@@ -21,6 +21,12 @@
################################################################################
+# Other makefiles included; makefiles not to be remade.
+
+# Don't remake this makefile.
+
+$(srcdir)/autodependency.make:: ;
+
# Configuration.
include $(srcdir)/configuration.make
diff --git a/compiler.make b/compiler.make
index c791bbba..f28601c0 100644
--- a/compiler.make
+++ b/compiler.make
@@ -19,6 +19,12 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Other makefiles included; makefiles not to be remade.
+
+# Don't remake this makefile.
+
+$(srcdir)/compiler.make:: ;
+
ifeq (gcc,$(LMI_COMPILER))
compiler_makefile := compiler_gcc.make
else ifeq (clang,$(LMI_COMPILER))
diff --git a/compiler_clang.make b/compiler_clang.make
index 7c48db1f..23ba0bb6 100644
--- a/compiler_clang.make
+++ b/compiler_clang.make
@@ -19,6 +19,17 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Other makefiles included; makefiles not to be remade.
+
+# Don't remake this makefile.
+
+$(srcdir)/compiler_clang.make:: ;
+
+include $(srcdir)/compiler_clang_warnings.make
+$(srcdir)/compiler_clang_warnings.make:: ;
+
+# Aliases for tools used in targets elsewhere.
+
AR := ar
CC := clang
CPP := cpp
diff --git a/compiler.make b/compiler_clang_warnings.make
similarity index 72%
copy from compiler.make
copy to compiler_clang_warnings.make
index c791bbba..6aa26a34 100644
--- a/compiler.make
+++ b/compiler_clang_warnings.make
@@ -1,4 +1,4 @@
-# Include compiler-specific makefile.
+# Compiler-specific makefile: clang warnings.
#
# Copyright (C) 2022 Gregory W. Chicares.
#
@@ -19,13 +19,6 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-ifeq (gcc,$(LMI_COMPILER))
- compiler_makefile := compiler_gcc.make
-else ifeq (clang,$(LMI_COMPILER))
- compiler_makefile := compiler_clang.make
-else
- $(warning Untested compiler '$(LMI_COMPILER)')
-endif
+# Don't remake this makefile.
-include $(srcdir)/$(compiler_makefile)
-$(srcdir)/$(compiler_makefile):: ;
+$(srcdir)/compiler_clang_warnings.make:: ;
diff --git a/compiler_gcc.make b/compiler_gcc.make
index 61e04524..43f2f34d 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -19,6 +19,17 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Other makefiles included; makefiles not to be remade.
+
+# Don't remake this makefile.
+
+$(srcdir)/compiler_gcc.make:: ;
+
+include $(srcdir)/compiler_gcc_warnings.make
+$(srcdir)/compiler_gcc_warnings.make:: ;
+
+# Aliases for tools used in targets elsewhere.
+
AR := $(gcc_proclitic)ar
CC := $(gcc_proclitic)gcc
CPP := $(gcc_proclitic)cpp
diff --git a/compiler.make b/compiler_gcc_warnings.make
similarity index 68%
copy from compiler.make
copy to compiler_gcc_warnings.make
index c791bbba..abc90f14 100644
--- a/compiler.make
+++ b/compiler_gcc_warnings.make
@@ -1,6 +1,6 @@
-# Include compiler-specific makefile.
+# Compiler-specific makefile: gcc warnings.
#
-# Copyright (C) 2022 Gregory W. Chicares.
+# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Gregory W. Chicares.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -19,13 +19,6 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-ifeq (gcc,$(LMI_COMPILER))
- compiler_makefile := compiler_gcc.make
-else ifeq (clang,$(LMI_COMPILER))
- compiler_makefile := compiler_clang.make
-else
- $(warning Untested compiler '$(LMI_COMPILER)')
-endif
+# Don't remake this makefile.
-include $(srcdir)/$(compiler_makefile)
-$(srcdir)/$(compiler_makefile):: ;
+$(srcdir)/compiler_gcc_warnings.make:: ;
diff --git a/configuration.make b/configuration.make
index 611313e1..4176276f 100644
--- a/configuration.make
+++ b/configuration.make
@@ -21,7 +21,13 @@
################################################################################
-# Include platform-specific makefile.
+# Other makefiles included; makefiles not to be remade.
+
+# Don't remake this makefile.
+
+$(srcdir)/configuration.make:: ;
+
+# Platform-specific makefile.
lmi_build_type := $(shell /usr/share/misc/config.guess)
diff --git a/msw_common.make b/msw_common.make
index 9889eaf1..c8df3309 100644
--- a/msw_common.make
+++ b/msw_common.make
@@ -19,7 +19,9 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-################################################################################
+# Don't remake this makefile.
+
+$(srcdir)/msw_common.make:: ;
SHREXT := .dll
diff --git a/msw_cygwin.make b/msw_cygwin.make
index f87149e0..c4b8c8ff 100644
--- a/msw_cygwin.make
+++ b/msw_cygwin.make
@@ -19,6 +19,10 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Don't remake this makefile.
+
+$(srcdir)/msw_cygwin.make:: ;
+
################################################################################
# Sanity checks.
diff --git a/msw_generic.make b/msw_generic.make
index 790f81cd..46381faa 100644
--- a/msw_generic.make
+++ b/msw_generic.make
@@ -19,6 +19,10 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Don't remake this makefile.
+
+$(srcdir)/msw_generic.make:: ;
+
################################################################################
# Sanity checks.
diff --git a/msw_wsl.make b/msw_wsl.make
index 200840ff..9cebe389 100644
--- a/msw_wsl.make
+++ b/msw_wsl.make
@@ -19,6 +19,10 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Don't remake this makefile.
+
+$(srcdir)/msw_wsl.make:: ;
+
################################################################################
# Sanity checks.
diff --git a/objects.make b/objects.make
index e896daa1..c3f3e637 100644
--- a/objects.make
+++ b/objects.make
@@ -19,6 +19,10 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Don't remake this makefile.
+
+$(srcdir)/objects.make:: ;
+
################################################################################
# External libraries whose source is compiled here. Their source
diff --git a/posix_fhs.make b/posix_fhs.make
index eccc76e4..aeabbd2a 100644
--- a/posix_fhs.make
+++ b/posix_fhs.make
@@ -20,6 +20,10 @@
# email: <gchicares@sbcglobal.net>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+# Don't remake this makefile.
+
+$(srcdir)/posix_fhs.make:: ;
+
################################################################################
SHREXT := .so
diff --git a/workhorse.make b/workhorse.make
index 1c679413..1e13ea22 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -58,7 +58,7 @@ all: effective_default_target
# Other makefiles included; makefiles not to be remade.
-# Don't remake this file.
+# Don't remake this makefile.
$(srcdir)/workhorse.make:: ;
- [lmi-commits] [lmi] master c63aa42b 07/11: Refactor, (continued)
- [lmi-commits] [lmi] master c63aa42b 07/11: Refactor, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master b2160aeb 01/11: Expunge $(actually_used_lmi_so_attributes), Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master a68f8519 03/11: Transplant $REQUIRED_CPPFLAGS, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 76ac1bab 09/11: Transplant a definition, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master ceb0ac3b 11/11: Fix defect introduced 20220623T2020Z: required information hidden, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 63460397 04/11: Expunge useless history, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 3bb0968b 02/11: Expunge two more needless local variables, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 0771a1bb 05/11: Don't accept obsolete compiler versions, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 67455db4 06/11: Expunge obsolete history, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 620bcee6 10/11: Refactor in anticipation of transplantation, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master d8ac666a 08/11: Generally avoid remaking makefiles,
Greg Chicares <=