[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 06a9554 4/5: Add and use an 'uninstall' makef
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 06a9554 4/5: Add and use an 'uninstall' makefile target |
Date: |
Tue, 13 Oct 2020 18:17:10 -0400 (EDT) |
branch: master
commit 06a9554ef35a6979facbc632f02a906dad73b53a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Add and use an 'uninstall' makefile target
See:
https://lists.nongnu.org/archive/html/lmi/2020-10/msg00071.html
---
GNUmakefile | 4 ++++
install_msw.sh | 1 +
2 files changed, 5 insertions(+)
diff --git a/GNUmakefile b/GNUmakefile
index c529072..c9ee8cf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -414,6 +414,10 @@ eviscerate: source_clean
-$(RM) --force --recursive $(prefix)/gcc_x86_64-w64-mingw32
-$(RM) --force --recursive $(prefix)/gcc_x86_64-pc-linux-gnu
+.PHONY: uninstall
+uninstall:
+ -$(RM) --force --recursive $(bindir)
+
################################################################################
# Custom tools built from source.
diff --git a/install_msw.sh b/install_msw.sh
index c7e9059..497950c 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -294,6 +294,7 @@ do
make "$coefficiency" --output-sync=recurse wx_config_check
make "$coefficiency" --output-sync=recurse show_flags
make "$coefficiency" --output-sync=recurse clean
+ make "$coefficiency" --output-sync=recurse uninstall
make "$coefficiency" --output-sync=recurse install
if [ "Cygwin" = "$platform" ]