From 57db596822c4d3727374b258d218e8986cf3a92a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 14 Jul 2014 16:32:01 -0400 Subject: Add build.mk files --- (limited to 'src') diff --git a/src/1/build.mk b/src/1/build.mk new file mode 100644 index 0000000..eef0ed2 --- /dev/null +++ b/src/1/build.mk @@ -0,0 +1,31 @@ +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} + +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 "$(ppt_platconf_dir)"; \ + cp -p "src/build/$${pkg}/$${ver}/"* "$(ppt_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 diff --git a/src/build.mk b/src/build.mk new file mode 100644 index 0000000..ff1414c --- /dev/null +++ b/src/build.mk @@ -0,0 +1,2 @@ +include ../ppt-version +include /usr/share/platconf-pkg-tools/$(ppt_version)/build.mk -- cgit v0.9.1