List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 2/2] Makefile: fix uninstall to remove filters
@ 2025-08-21 19:46 Christian Barcenas
  0 siblings, 0 replies; only message in thread
From: Christian Barcenas @ 2025-08-21 19:46 UTC (permalink / raw)
  To: cgit

Signed-off-by: Christian Barcenas <christian@cbarcenas.com>

diff --git a/Makefile b/Makefile
index 7f36cee..75c9561 100644
--- a/Makefile
+++ b/Makefile
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-21 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-21 19:46 [PATCH 2/2] Makefile: fix uninstall to remove filters Christian Barcenas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).