From c7f97b0c1bc73934a269fb356e49e44c467c3f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Sat, 13 Jan 2024 17:43:59 -0800 Subject: [PATCH] Install README in its own subdirectory According to the Linux Standard Base (LSB), README files should be installed in the /usr/share/doc directory. By convention however the README files should not go there 'bare', but in a subdirectory for each program. Install to $(PREFIX)/share/doc/btop/README.md to comply with this. To ensure the 'themes' is copied as a full directory and not individual files, create the /usr/share/btop in a separate step as the doc installation step no longer does it. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e489164..6581705 100644 --- a/Makefile +++ b/Makefile @@ -305,10 +305,11 @@ install: @mkdir -p $(DESTDIR)$(PREFIX)/bin @cp -p $(TARGETDIR)/btop $(DESTDIR)$(PREFIX)/bin/btop @chmod 755 $(DESTDIR)$(PREFIX)/bin/btop - @printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop\n" - @mkdir -p $(DESTDIR)$(PREFIX)/share/btop - @cp -p README.md $(DESTDIR)$(PREFIX)/share/btop + @printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/doc/btop\n" + @mkdir -p $(DESTDIR)$(PREFIX)/share/doc/btop + @cp -p README.md $(DESTDIR)$(PREFIX)/share/doc/btop @printf "\033[1;92mInstalling themes to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop/themes\033[0m\n" + @mkdir -p $(DESTDIR)$(PREFIX)/share/btop @cp -pr themes $(DESTDIR)$(PREFIX)/share/btop @printf "\033[1;92mInstalling desktop entry to: \033[1;97m$(DESTDIR)$(PREFIX)/share/applications/btop.desktop\n" @mkdir -p $(DESTDIR)$(PREFIX)/share/applications/