summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 13:02:24 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 13:02:24 (EDT)
commit158ed6fd47b7760d32a09efd9916865d0b96cd73 (patch)
treea59696d57c80cac35b19bce2defc12b0dcb9be84 /configure
parenta5bba3e6fc970d6ea91d9679dbeb0c90fcf60b65 (diff)
configure: Only edit top-level makefile.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure b/configure
index fca8b11..11748d9 100755
--- a/configure
+++ b/configure
@@ -320,6 +320,8 @@ find_dep_lib()
write_makefiles()
{
+ mkdir -p src lib lib/package lib/metadata locale man tests
+
# Make a script to edit input makefiles.
_sed_script=''
for _var in ${subst_vars}; do
@@ -327,10 +329,7 @@ write_makefiles()
_sed_script="${_sed_script}s&@${_var}@&$(eval echo \$\{"${_var}"\})&g;"
done
- for _dir in . src lib lib/package lib/metadata locale man tests; 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 system configuration for testing.
# TODO: Remove when no longer used.