From 2f416efd5e226833fc4b6f4ce3abc3e54c4142e0 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 9 Feb 2022 12:41:11 -0500 Subject: [PATCH] makefile: Add uninstall target --- GNUmakefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 044af47..0bb4709 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -163,7 +163,15 @@ clean: $(RM) lib/renderers/wayland/wlr-*.h lib/renderers/wayland/wlr-*.c lib/renderers/wayland/xdg-shell.c $(RM) -r html +uninstall: + $(RM) -r "$(DESTDIR)$(PREFIX)$(libdir)/bemenu" + $(RM) "$(DESTDIR)$(PREFIX)$(mandir)/bemenu.1" + $(RM) "$(DESTDIR)$(PREFIX)$(bindir)/bemenu" + $(RM) "$(DESTDIR)$(PREFIX)$(bindir)/bemenu-run" + $(RM) "$(DESTDIR)$(PREFIX)$(libdir)"/libbemenu.so* + $(RM) "$(DESTDIR)$(PREFIX)$(includedir)/bemenu.h" + .DELETE_ON_ERROR: -.PHONY: all clean install install-base install-pkgconfig install-include install-libs install-lib-symlinks \ +.PHONY: all clean uninstall install install-base install-pkgconfig install-include install-libs install-lib-symlinks \ install-man install-bins install-docs install-renderers install-curses install-wayland install-x11 \ doxygen sign clients curses x11 wayland