summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 14:42:49 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 14:42:49 (EDT)
commit6e46a695647f81b4a0cefdb0e22b0c665dc8fe5e (patch)
treee02e6aab57d38e42ea585d3b2177e2744ea7ef78
parent5d77a25b7b46f2f60f2152699e2ce75183f121b9 (diff)
src/2/build.mk: Split into recursive sub-targets
-rw-r--r--src/2/build.mk11
1 files changed, 8 insertions, 3 deletions
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