summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2/build.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/2/build.mk b/src/2/build.mk
index a20d704..dfa6292 100644
--- a/src/2/build.mk
+++ b/src/2/build.mk
@@ -8,10 +8,12 @@ nop build:
install:
set -e; \
[ -d src/build/ ] || exit 0; \
- for pkg in src/build/*; do \
+ for pkg in src/build/*/; do \
pkg="$${pkg#src/build/}"; \
- for ver in "src/build/$${pkg}/"*; do \
+ pkg="$${pkg%/}"; \
+ for ver in "src/build/$${pkg}/"*/; do \
ver="$${ver#src/build/$${pkg}/}"; \
+ ver="$${ver%/}"; \
mkdir -p "$(ppt_platconf_dir)"; \
cp -p "src/build/$${pkg}/$${ver}/"* \
"$(ppt_platconf_dir)"; \
@@ -19,8 +21,9 @@ install:
done
set -e; \
[ -d src/run/ ] || exit 0; \
- for pkg in src/run/*; do \
+ for pkg in src/run/*/; do \
pkg="$${pkg#src/run/}"; \
+ pkg="$${pkg%/}"; \
mkdir "config-$${pkg}.data"; \
find "src/run/$${pkg}" -type f | while read -r file; do \
file="$${file#src/run/$${pkg}}"; \