summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-22 13:32:41 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-22 13:32:41 (EDT)
commitd469b558c4ffb7976767f803d59f8a5a859fad20 (patch)
treed983856784048649efffddd78ee44d43970b836b
parent0015fa62fd50f79f904836578e7016b99d5baaa2 (diff)
config: Generate a makefile fragment with targets.
-rw-r--r--.gitignore2
-rwxr-xr-xconfig13
2 files changed, 12 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 90a679a..5e46bbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,7 @@ gcc-*-*.orig.tar.*
cpp-*-*-*-*.pkg/
gcc-*-*-*-*.pkg/
g++-*-*-*-*.pkg/
-targets
+targets.mk
# Work area
tmp/
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