Commit ed14a818 authored by Robby Workman's avatar Robby Workman
Browse files

configure: tweak Makefile substitutions



Signed-off-by: Robby Workman's avatarRobby Workman <rworkman@slackware.com>
parent c319c41f
Pipeline #5364 passed with stage
in 14 seconds
......@@ -19,8 +19,6 @@ help () {
}
PREFIX=${PREFIX:-"/usr/local"}
DOCDIR=${DOCDIR:-"$PREFIX/share/doc/$APPNAME"}
MANDIR=${MANDIR:-"$PREFIX/share/man"}
while [ $# -gt 0 ]; do
case $1 in
......@@ -49,11 +47,18 @@ while [ $# -gt 0 ]; do
shift
done
DOCDIR=${DOCDIR:-"$PREFIX/share/doc/$APPNAME"}
MANDIR=${MANDIR:-"$PREFIX/share/man"}
echo "Creating Makefile..."
sed -e s,@prefix@,$PREFIX, Makefile.in.in > Makefile.in
sed -i -e s,@appname@,$APPNAME, Makefile.in
sed -i -e s,@version@,$VERSION, Makefile.in
sed -i -e s,@mandir@,$MANDIR, Makefile.in
sed -i -e s,@docdir@,$DOCDIR, Makefile.in
sed -e s,@python@,$PYTHON, Makefile.in > Makefile
sed \
-e s,@appname@,$APPNAME,g \
-e s,@version@,$VERSION,g \
-e s,@mandir@,$MANDIR,g \
-e s,@docdir@,$DOCDIR,g \
-e s,@python@,$PYTHON,g \
Makefile.in > Makefile
echo "Installation prefix is $PREFIX"
echo "Installation mandir is $MANDIR"
echo "Installation docdir is $DOCDIR"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment