summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-07-26 23:36:24 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-07-26 23:57:18 +0200
commit69441360a49c42faeb01629e50d7357854f028d2 (patch)
tree95805b9c9b85d850b91bc4aab278efdf820fa97a /Makefile
parentf03503b19950fa3574b43385c465c837e087682c (diff)
downloadpacman-offline-69441360a49c42faeb01629e50d7357854f028d2.tar.gz
pacman-offline-69441360a49c42faeb01629e50d7357854f028d2.tar.zst
README: add documentation
Fixes GH-3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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