diff options
| author | 2025-08-21 14:46:45 -0500 | |
|---|---|---|
| committer | 2025-11-17 21:40:58 +0100 | |
| commit | 76abc4068222fe4242a952498e252a670615c362 (patch) | |
| tree | 9871bb9c074697e9f2da8e4676a9c29f9698deca | |
| 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 |
