summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-05 16:01:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-05 16:01:07 (EDT)
commitf693bc8852ec1f0b5b0d68219fb71e57cd286cef (patch)
tree9eecc0879956ca61b63c74f5b6cef0077a613364 /configure
parente214ce9fa75a77436bbca77ffc9b78de31962277 (diff)
configure: Only edit top-level makefile.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index fdce6b7..7011f4a 100755
--- a/configure
+++ b/configure
@@ -315,17 +315,17 @@ find_dep_lib()
write_makefiles()
{
+ for _dir in src lib lib/buildsystem locale man; do
+ mkdir "${_dir}"
+ done
+
# Make a script to edit input makefiles.
_sed_script=''
for _var in ${subst_vars}; do
_var="$(printf '%s' "${_var}" | tr -c '[a-z0-9]' '_')"
_sed_script="${_sed_script}s&@${_var}@&$(eval echo \$\{"${_var}"\})&g;"
done
-
- for _dir in . src lib lib/buildsystem locale man; do
- mkdir -p "${_dir}"
- sed "${_sed_script}" "${srcdir}/${_dir}/Makefile.in" >"${_dir}/Makefile"
- done
+ sed "${_sed_script}" "${srcdir}/Makefile.in" >'Makefile'
# New and improved kludge to generate an architecture table for testing.
# TODO: Remove when no longer used.