Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-12-10 10:46:31 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-12-10 10:51:03 -0500
commit044498f03f4acdaeef2b2894f05f1f7bde800fa9 (patch)
tree05863f2c48cd1b3161a3fc2bd9b470a0a7b61e07 /build-aux
parent219a4b521aab67153880f21f1b4d9b01a603ca9b (diff)
downloadtame-044498f03f4acdaeef2b2894f05f1f7bde800fa9.tar.gz
tame-044498f03f4acdaeef2b2894f05f1f7bde800fa9.tar.bz2
tame-044498f03f4acdaeef2b2894f05f1f7bde800fa9.zip
Makefile.am: Copy srv/!(rater).js to destination paths
Note that such files may not actually exist, which is why `nullglob' is set and the `for' loop is used. * build-aux/Makefile.am (SHELL): Set `nullglob'. (program-data-copy, lvroot): Copy srv/!(rater).js to destination JS paths.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/build-aux/Makefile.am b/build-aux/Makefile.am
index 0fa6c31..0a155fb 100644
--- a/build-aux/Makefile.am
+++ b/build-aux/Makefile.am
@@ -83,7 +83,7 @@ default: program-ui c1map FORCE
# keep all intermediate files for easy introspection
.SECONDARY:
-SHELL = /bin/bash -O extglob
+SHELL = /bin/bash -O extglob -O nullglob
# propagate to tame{,d}
export TAME_CMD_WAITTIME
@@ -197,6 +197,9 @@ suppliers.mk:
$(path_dsl)/tame/build-aux/gen-make $(SRCPATHS) > $@
test ! -d $(path_c1map) || $(path_dsl)/tame/build-aux/gen-c1make $(path_c1map)/*.xml >> $@
+# TODO: There is a potential for conflict in copying files to
+# src/node/programs/rater/programs/@program@. Note that the `for' loop is
+# used here to handle the situation where no such files exist.
program-data-copy: standalones program-ui c1map .version.xml
mkdir -p "$(path_lv)/src/node/program/rater/programs/@program@"
mkdir -p "$(path_lv)/src/node/program/classify"
@@ -214,6 +217,9 @@ program-data-copy: standalones program-ui c1map .version.xml
"$(path_lv)/src/node/program/ui/custom/"
cp -v "$(path_srv)/rater.js" \
"$(path_lv)/src/node/program/rater/programs/@program@.js"
+ for f in "$(path_srv)/"!(rater).js; do \
+ cp -v "$$f" "$(path_lv)/src/node/program/rater/programs/@program@/"; \
+ done
cp -v "$(path_ui)/package.strip.js" \
"$(path_lv)/src/node/program/classify/@program@.js"
cp -v "$(path_ui)/"{Program,include,package}.js \
@@ -237,6 +243,9 @@ lvroot: summary-html program-ui c1map strip
mkdir -p "$(path_lvroot)/src/lib/c1/interfaces/c1/contract/@program@"
cp -v "$(path_srv)/rater.js" \
"$(path_lvroot)/src/node/program/rater/programs/@program@.js"
+ for f in "$(path_srv)/"!(rater).js; do \
+ cp -v "$$f" "$(path_lvroot)/src/node/program/rater/programs/@program@/"; \
+ done
cp -v "$(path_suppliers)/"*.js \
"$(path_lvroot)/src/node/program/rater/programs/@program@"
cp -v "$(path_ui)/package.strip.js" \