From f693bc8852ec1f0b5b0d68219fb71e57cd286cef Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 05 May 2013 16:01:07 -0400 Subject: configure: Only edit top-level makefile. --- 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. -- cgit v0.9.1