From: Christian Barcenas <christian@cbarcenas.com>
To: cgit@lists.zx2c4.com
Subject: [PATCH 2/2] Makefile: fix uninstall to remove filters
Date: Thu, 21 Aug 2025 14:46:45 -0500 [thread overview]
Message-ID: <CAJMok+YF_WhXPy1h2e0FKGZtDgdg-U9vNRNM4dw4ZWt05sPGLQ@mail.gmail.com> (raw)
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
reply other threads:[~2025-08-21 19:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJMok+YF_WhXPy1h2e0FKGZtDgdg-U9vNRNM4dw4ZWt05sPGLQ@mail.gmail.com \
--to=christian@cbarcenas.com \
--cc=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).