# Get it
cd
test -f installed/makedepend-1.0.5.tar.bz2 &&
mv -f installed/makedepend-1.0.5.tar.bz2 .
test ! -f makedepend-1.0.5.tar.bz2 &&
wget --no-check-certificate \
https://www.x.org/releases/individual/util/makedepend-1.0.5.tar.bz2
# Extract the source
mkdir -p -m 0700 src
cd src
tar xjvf ~/makedepend-1.0.5.tar.bz2
cd makedepend-1.0.5
test $UID = 0 && chown -R root:root .
# Configure the build
./configure --prefix=/usr --mandir=/usr/man
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg makedepend
# Install it
make install
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/makedepend-*.tar.*
mv -f makedepend-1.0.5.tar.bz2 installed/
# If you ever want to uninstall makedepend, this should do it:
cd
su
test -d src/makedepend-* && ( cd src/makedepend-* ; make uninstall )
rm -f /usr/bin/makedepend /usr/man/man1/makedepend.1*
exit
find ~/src -maxdepth 1 -type d -name "makedepend-*" -exec rm -r {} \;
rm -f ~/installed/makedepend-*.tar.*