[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 19c0946 13/18: Copy compiler runtime files in
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 19c0946 13/18: Copy compiler runtime files in one makefile target only |
Date: |
Wed, 29 May 2019 18:49:09 -0400 (EDT) |
branch: master
commit 19c09468c800ab2c7577c6de2411b165ae54410e
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Copy compiler runtime files in one makefile target only
* GNUmakefile: Copy runtime files not only to build directory (required
for unit tests (historically, at least)), but also to local binary
directory (which is on $PATH). Ensure that the latter target directory
(and other required directories) exist beforehand. Removed a mkdir
command hereby rendered needless.
* workhorse.make: Remove command for precondition now ensured in
'GNUmakefile'.
---
GNUmakefile | 11 +++++++----
workhorse.make | 2 --
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 66780ee..074fc46 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -242,9 +242,13 @@ MAKETARGET = \
.PHONY: $(build_dir)
$(build_dir): $(gpl_files)
- address@hidden -d $@ ] || $(MKDIR) --parents $@
- address@hidden z in $(compiler_runtime_files); \
- do $(CP) --archive --update $$z $@ ; \
+ address@hidden -d $@ ] || $(MKDIR) --parents $@
+ address@hidden -d $(localbindir) ] || $(MKDIR) --parents
$(localbindir)
+ address@hidden -d $(locallibdir) ] || $(MKDIR) --parents
$(locallibdir)
+ address@hidden -d $(localincludedir) ] || $(MKDIR) --parents
$(localincludedir)
+ address@hidden z in $(compiler_runtime_files); do \
+ $(CP) --archive --update $$z $@ ; \
+ $(CP) --archive --update $$z $(localbindir) ; \
done;
address@hidden(MAKETARGET)
@@ -406,7 +410,6 @@ TEST_CODING_RULES := $(build_dir)/test_coding_rules$(EXEEXT)
.PHONY: custom_tools
custom_tools:
@$(MAKE) test_coding_rules$(EXEEXT)
- @$(MKDIR) --parents $(localbindir)
@$(CP) --preserve --update $(TEST_CODING_RULES) $(localbindir)
################################################################################
diff --git a/workhorse.make b/workhorse.make
index dc2584e..7bd2885 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -1070,8 +1070,6 @@ install: $(default_targets)
@$(CP) --preserve --update $(data_files) $(datadir)
@$(CP) --preserve --update $(help_files) $(datadir)
@datadir=$(datadir) srcdir=$(srcdir) $(srcdir)/mst_to_xst.sh
- @[ -z "$(compiler_runtime_files)" ] \
- || $(CP) --preserve $(compiler_runtime_files) $(localbindir)
ifeq (,$(USE_SO_ATTRIBUTES))
@cd $(datadir); $(PERFORM) $(bindir)/product_files$(EXEEXT)
else
- [lmi-commits] [lmi] master updated (e503910 -> b30b5db), Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 0d8f53e 02/18: Resolve shellcheck "SC1117" warning, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 1d9b9a6 04/18: Deduplicate, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 0e9da3a 01/18: Use Ubuntu 18.04 only for WSL, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 66fe46b 03/18: Resolve more shellcheck "SC1117" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master b25a732 06/18: Resolve all shellcheck "SC2038" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master d52c37f 09/18: Resolve a shellcheck "SC2034" warning, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master ee293d1 10/18: Update certain URLs, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 19c0946 13/18: Copy compiler runtime files in one makefile target only,
Greg Chicares <=
- [lmi-commits] [lmi] master 3873eb0 15/18: Fix defect committed 20190521T2101: tested 'md5sums' in wrong directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master c40f2f8 14/18: Routinely run shellcheck, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aebe56b 17/18: Don't copy compiler runtime files to build directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 9b9978f 16/18: Avoid 'ls --classify', Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master f4cb231 08/18: Remove space after '#!', Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aa29114 12/18: Improve command to copy compiler runtime files, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master f760e3d 11/18: Fix defect introduced 20190426T2304Z: wrong variable used, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master b30b5db 18/18: Make 'custom_tools' when rebuilding from scratch, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 23ef51a 05/18: Resolve a shellcheck "SC2166" warning, Greg Chicares, 2019/05/29