From 19863a23452878c60bf8491228815d1d38c0e8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Wagner?= Date: Sat, 2 Sep 2023 08:45:04 +0200 Subject: [PATCH 1/3] Update Makefile allow for a separate directory for the LICENSE file, default is the same as the DOCDIR --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 40d9102..1682308 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,15 @@ PREFIX ?= ~/.local BINDIR?=$(PREFIX)/bin DOCDIR?=$(PREFIX)/share/doc/astro +LICENSEDIR?=$(PREFIX)/share/doc/astro install: - mkdir -p $(BINDIR) $(DOCDIR) + mkdir -p $(BINDIR) $(DOCDIR) $(LICENSEDIR) install -m +rx astro -t $(BINDIR) install -m +r README.md -t $(DOCDIR) - install -m +r LICENSE -t $(DOCDIR) + install -m +r LICENSE -t $(LICENSEDIR) uninstall: rm $(BINDIR)/astro rm -rf $(DOCDIR) + rm -rf $(LICENSEDIR) From e96949e5f4f07434b7ca4dea38ea1d8a5de1b2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Wagner?= Date: Sat, 2 Sep 2023 09:16:19 +0200 Subject: [PATCH 2/3] Makefile: install/uninstall man page --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1682308..d7dff11 100644 --- a/Makefile +++ b/Makefile @@ -3,15 +3,18 @@ PREFIX ?= ~/.local BINDIR?=$(PREFIX)/bin DOCDIR?=$(PREFIX)/share/doc/astro +MANDIR?=$(PREFIX)/share/man/man1 LICENSEDIR?=$(PREFIX)/share/doc/astro install: - mkdir -p $(BINDIR) $(DOCDIR) $(LICENSEDIR) + mkdir -p $(BINDIR) $(DOCDIR) $(LICENSEDIR) $(MANDIR) install -m +rx astro -t $(BINDIR) install -m +r README.md -t $(DOCDIR) install -m +r LICENSE -t $(LICENSEDIR) + install -m +r astro.en.1 $(MANDIR)/astro.1 uninstall: rm $(BINDIR)/astro rm -rf $(DOCDIR) rm -rf $(LICENSEDIR) + rm -f $(MANDIR)/astro.1 From 3cc848cbff9cd1e476dcce82c6d2c625424651b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Wagner?= Date: Sat, 2 Sep 2023 09:17:54 +0200 Subject: [PATCH 3/3] Makefile: add CONTRIBUTING.md to DOCDIR --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7dff11..a58edfd 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ LICENSEDIR?=$(PREFIX)/share/doc/astro install: mkdir -p $(BINDIR) $(DOCDIR) $(LICENSEDIR) $(MANDIR) install -m +rx astro -t $(BINDIR) - install -m +r README.md -t $(DOCDIR) + install -m +r README.md CONTRIBUTING.md -t $(DOCDIR) install -m +r LICENSE -t $(LICENSEDIR) install -m +r astro.en.1 $(MANDIR)/astro.1