commit: 511ae7654f7b0c66d4d0a5cd42b43aab9110e21c
parent: 44e342804ce763b8f23719021cddafc6872134a3
author: decho <deltaecho255@protonmail.com>
date: Sun, 3 Jan 2021 09:46:12 +0600
configure: Produce an uninstall target
1 file changed, 14 insertions(+)
diff --git a/configure b/configure
@@ -74,6 +74,20 @@ fi
cat << EOF >> Makefile
+uninstall:
+ rm -f \${DESTDIR}\${BINDIR}/\${PROG}
+ rm -f \${DESTDIR}\${MANDIR}/man1/\${PROG}.1
+EOF
+
+if [ $instsh -ne 0 ] ; then
+cat << EOF >> Makefile
+ rm -f \${DESTDIR}\${BINDIR}/sh
+ rm -f \${DESTDIR}\${MANDIR}/man1/sh.1
+EOF
+fi
+
+cat << EOF >> Makefile
+
test:
echo "No tests"