Install Dinit manpage on "make install".
authorDavin McCall <davmac@davmac.org>
Thu, 8 Jun 2017 20:16:21 +0000 (21:16 +0100)
committerDavin McCall <davmac@davmac.org>
Thu, 8 Jun 2017 20:16:21 +0000 (21:16 +0100)
Makefile
doc/manpages/Makefile [new file with mode: 0644]

index 3614cbed1ffa5ed41a946833a2e021023386d2d8..e764dee9446add2b3cf981920f5aa9f7ab462d2b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ all:
 
 install:
        $(MAKE) -C src install
+       $(MAKE) -C doc/manpages install
 
 clean:
        $(MAKE) -C src clean
diff --git a/doc/manpages/Makefile b/doc/manpages/Makefile
new file mode 100644 (file)
index 0000000..53f6a7a
--- /dev/null
@@ -0,0 +1,3 @@
+install:
+       mkdir -p "$(DESTDIR)/usr/share/man/man1"
+       cp dinit.1 "$(DESTDIR)/usr/share/man/man1"