From 69441360a49c42faeb01629e50d7357854f028d2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 26 Jul 2023 23:36:24 +0200 Subject: README: add documentation Fixes GH-3 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b670cff..eea54d4 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,9 @@ all: README.html $(MD) $< > $@ $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' $@ -install: +install: install-bin install-doc + +install-bin: $(INSTALL) -D -m0755 bin/pacman-offline $(DESTDIR)/usr/bin/pacman-offline $(INSTALL) -D -m0644 config/offline.conf $(DESTDIR)/etc/pacman.d/offline.conf $(INSTALL) -D -m0644 hook/99-pacman-offline.hook $(DESTDIR)/usr/share/libalpm/hooks/99-pacman-offline.hook @@ -28,6 +30,10 @@ install: $(INSTALL) -d -m0755 $(DESTDIR)/usr/lib/systemd/system/system-update.target.wants/ $(LN) -s ../pacman-offline.service $(DESTDIR)/usr/lib/systemd/system/system-update.target.wants/pacman-offline.service +install-doc: README.html + $(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/pacman-offline/README.md + $(INSTALL) -D -m0644 README.html $(DESTDIR)/usr/share/doc/pacman-offline/README.html + clean: $(RM) -f README.html -- cgit v1.2.3-70-g09d2