summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig13
1 files changed, 11 insertions, 2 deletions
diff --git a/config b/config
index fee7e81..40c19ef 100755
--- a/config
+++ b/config
@@ -14,10 +14,19 @@ main()
if [ -z "${PKG_TARGETS}" ]; then
PKG_TARGETS="$(cat targets.in)"
fi
- >targets
for arch in ${PKG_TARGETS}; do
PKG_TARGET_ARCH="${arch}" configure_build
- printf '%s\n' "${arch}" >>targets
+ done
+ >targets.mk
+ for stamp in configure build install; do
+ printf '%s_targets = \\\n' "${stamp}" \
+ >>targets.mk
+ for arch in ${PKG_TARGETS}; do
+ printf '\t%s-%s \\\n' \
+ "${stamp}" "${arch}" \
+ >>targets.mk
+ done
+ printf '\n' >>targets.mk
done
;;
esac