mirror of
https://git.zx2c4.com/cgit
synced 2025-08-29 14:18:08 +02:00
Makefile: fix uninstall to remove filters
Signed-off-by: Christian Barcenas <christian@cbarcenas.com> Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
2ee6783311
commit
51b0e8520c
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -108,6 +108,11 @@ install-pdf: doc-pdf
|
||||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir)
|
$(INSTALL) -m 0755 -d $(DESTDIR)$(pdfdir)
|
||||||
$(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir)
|
$(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir)
|
||||||
|
|
||||||
|
define rm_f
|
||||||
|
rm -f $(1)
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
||||||
rm -f $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
|
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)/cgit.png
|
||||||
rm -f $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico
|
rm -f $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico
|
||||||
rm -f $(DESTDIR)$(CGIT_DATA_PATH)/robots.txt
|
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
|
uninstall-doc: uninstall-man uninstall-html uninstall-pdf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue