summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-24 20:23:12 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-24 20:23:12 (EST)
commitaa8b08354c087d5baaf904fffeeb5b0d074adb9e (patch)
tree096de21e851d5c172b09731443028acc37ea8c96 /configure
parent2003806791ec89885eab9b074909dba863c4007d (diff)
Start trying to modularize the makefiles.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 69af311..17f2949 100755
--- a/configure
+++ b/configure
@@ -171,6 +171,7 @@ missing_dependencies=false
find_dependency sh SHELL /bin
find_dependency install INSTALL /usr/bin
+find_dependency make MAKE /usr/bin
if ${missing_dependencies}; then
printf '\nSome dependencies could not be found.\n'
@@ -181,6 +182,7 @@ fi
sed_script="
s&@shell@&${SHELL}&
s&@install@&${INSTALL} -c&
+s&@make@&${MAKE}&
s&@srcdir@&${SRCDIR}&
s&@prefix@&${PREFIX}&
s&@bindir@&${BINDIR}&
@@ -188,6 +190,10 @@ s&@libdir@&${LIBDIR}&
s&@mandir@&${MANDIR}&"
# Replace configuration variables in Makefile.in
+mkdir src lib man
sed "$sed_script" ${SRCDIR}/Makefile.in > Makefile
+sed "$sed_script" ${SRCDIR}/src/Makefile.in > src/Makefile
+sed "$sed_script" ${SRCDIR}/lib/Makefile.in > lib/Makefile
+sed "$sed_script" ${SRCDIR}/man/Makefile.in > man/Makefile
printf '\nConfiguration complete!\n\n'