[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b13c4fea 5/6: Add $(srcdir)/ prefix to exclud
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b13c4fea 5/6: Add $(srcdir)/ prefix to excluded data files |
Date: |
Sat, 23 Jul 2022 16:21:51 -0400 (EDT) |
branch: master
commit b13c4feadb8e3433c717556902890a9c518fc158
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Add $(srcdir)/ prefix to excluded data files
$(data_files) is prefixed with $(srcdir)/ , which is appropriate because
it is used for more than one purpose. In scripts that create fardels, it
is convenient to specify $(excluded_data_files) without such a prefix
(e.g., if 'skin.xrc' is to be excluded, then specify only its basename),
and add the $(srcdir)/ prefix in this makefile.
---
workhorse.make | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index bd7a6ae1..5c20d058 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -529,9 +529,10 @@ lmi_msw_res.o: lmi.ico
excluded_data_files :=
data_files := \
- $(wildcard $(addprefix $(srcdir)/,*.ico *.png *.xml *.xrc *.xsd *.xsl)) \
-
-data_files := $(filter-out $(excluded_data_files), $(data_files))
+ $(filter-out \
+ $(addprefix $(srcdir)/,$(excluded_data_files)), \
+ $(wildcard $(addprefix $(srcdir)/,*.ico *.png *.xml *.xrc *.xsd *.xsl)) \
+ )
help_files := \
$(wildcard $(addprefix $(srcdir)/,*.html)) \
- [lmi-commits] [lmi] master updated (cbae25fb -> 6126d1e0), Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master a8e94c0b 1/6: Add a handy vim command, Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master fdeb5bbe 2/6: Make git ignore vim swap files, Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master cfd10535 3/6: Install 'bear', Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master 6126d1e0 6/6: Refuse uselessly to make posix fardels, Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master fb2b1357 4/6: Pass multiple files to 'install' without looping, Greg Chicares, 2022/07/23
- [lmi-commits] [lmi] master b13c4fea 5/6: Add $(srcdir)/ prefix to excluded data files,
Greg Chicares <=