diff options
| author | Christian Barcenas <christian@cbarcenas.com> | 2025-08-21 14:46:45 -0500 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2025-08-25 11:25:18 +0200 |
| commit | 51b0e8520c4ec4d246511f272b3764d6dbed0943 (patch) | |
| tree | f9800092918354382b1c1b7b11727154606dbe3d | |
| parent | 2ee6783311054e4789f6cce46948cc9b02022637 (diff) | |
| download | cgit-51b0e8520c4ec4d246511f272b3764d6dbed0943.tar.gz cgit-51b0e8520c4ec4d246511f272b3764d6dbed0943.tar.bz2 cgit-51b0e8520c4ec4d246511f272b3764d6dbed0943.tar.xz | |
Makefile: fix uninstall to remove filters
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 |
