From 6e46a695647f81b4a0cefdb0e22b0c665dc8fe5e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 15 Jul 2019 14:42:49 -0400 Subject: src/2/build.mk: Split into recursive sub-targets --- diff --git a/src/2/build.mk b/src/2/build.mk index dfa6292..7f20ec0 100644 --- a/src/2/build.mk +++ b/src/2/build.mk @@ -1,13 +1,13 @@ 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: @: -install: +install-build: set -e; \ - [ -d src/build/ ] || exit 0; \ for pkg in src/build/*/; do \ pkg="$${pkg#src/build/}"; \ pkg="$${pkg%/}"; \ @@ -19,8 +19,9 @@ install: "$(ppt_platconf_dir)"; \ done; \ done + +install-run: set -e; \ - [ -d src/run/ ] || exit 0; \ for pkg in src/run/*/; do \ pkg="$${pkg#src/run/}"; \ pkg="$${pkg%/}"; \ @@ -32,3 +33,7 @@ install: "config-$${pkg}.data/$${file}"; \ done; \ done + +install: + [ -d src/build/ ] && $(MAKE) -f $0 install-build + [ -d src/run/ ] && $(MAKE) -f $0 install-run -- cgit v0.9.1