ppt_plat = $${OPK_SOURCE\#config-} ppt_pkg_dir = config-$${pkg}-$(ppt_plat).data ppt_platconf_dir = $(ppt_pkg_dir)/usr/share/platconf/$(ppt_plat)/$${pkg_ver} 0 = /usr/share/platconf-pkg-tools/$(ppt_version)/build.mk nop build: @: ppt-mkpkgs ppt-rmpkgs: @cd ../ && $@ install-build: set -e; \ for pkg_ver in src/build/*/; do \ [ -d "$${pkg_ver}" ] || continue; \ pkg_ver="$${pkg_ver#src/build/}"; \ pkg_ver="$${pkg_ver%/}"; \ pkg="$${pkg_ver%_*}"; \ mkdir -p "$(ppt_platconf_dir)"; \ cp -p "src/build/$${pkg_ver}/"* "$(ppt_platconf_dir)"; \ done install-run: set -e; \ for pkg in src/run/*/; do \ [ -d "$${pkg}" ] || continue; \ 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}}"; \ mkdir -p "config-$${pkg}.data/$${file%/*}"; \ cp -p "src/run/$${pkg}/$${file}" \ "config-$${pkg}.data/$${file}"; \ done; \ done install: if [ -d src/build/ ]; then $(MAKE) -f $0 install-build; fi if [ -d src/run/ ]; then $(MAKE) -f $0 install-run ; fi