blob: c2281f3ab81da00d00bd505019c4c38cd3357b28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/make -f
plat = $${OPK_SOURCE\#config-}
config_pkg = config-$${pkg}-$(plat)
platconf_dir = $(config_pkg).data/usr/share/platconf/$(plat)/$${pkg}_$${ver}
nop:
@:
build:
@:
install: build
set -e; \
for pkg in src/build/*; do \
pkg="$${pkg#src/build/}"; \
for ver in "src/build/$${pkg}/"*; do \
ver="$${ver#src/build/$${pkg}/}"; \
mkdir -p "$(platconf_dir)"; \
cp -p "src/build/$${pkg}/$${ver}/"* "$(platconf_dir)"; \
done; \
done
set -e; \
for pkg in src/run/*; do \
pkg="$${pkg#src/run/}"; \
mkdir "config-$${pkg}.data"; \
find "src/run/$${pkg}" -type f | while read -r file; do \
file="$${file#src/run/$${pkg}}"; \
mkdir -p "config-$${pkg}.data/$${file%/*}"; \
cp -p "src/run/$${pkg}/$${file}" \
"config-$${pkg}.data/$${file}"; \
done; \
done
|