diff options
author | 2025-08-21 14:46:45 -0500 | |
---|---|---|
committer | 2025-08-25 11:25:18 +0200 | |
commit | 51b0e8520c4ec4d246511f272b3764d6dbed0943 (patch) | |
tree | f9800092918354382b1c1b7b11727154606dbe3d | |
parent | Makefile: fix uninstall to remove js and robots.txt (diff) | |
download | cgit-ch/for-jason.tar.xz cgit-ch/for-jason.zip |
Makefile: fix uninstall to remove filtersch/for-jason
Signed-off-by: Christian Barcenas <christian@cbarcenas.com>
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -108,6 +108,11 @@ install-pdf: doc-pdf $(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir) $(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir) +define rm_f +rm -f $(1) + +endef + uninstall: rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) rm -f $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css @@ -115,6 +120,8 @@ uninstall: rm -f $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png rm -f $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico rm -f $(DESTDIR)$(CGIT_DATA_PATH)/robots.txt + $(foreach file,$(patsubst filters/%,%,$(shell find filters/ ! -type d)), \ + $(call rm_f,$(DESTDIR)$(filterdir)/$(file))) uninstall-doc: uninstall-man uninstall-html uninstall-pdf |