summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-22 19:50:53 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-22 19:50:53 +1300
commit4ee2ec70989449dc1a731937782afad57b28621b (patch)
tree1137357ac830e1e619da4733d1f17ee451a915a7
parent16ace394e4cd94c3ff907c760d23eb560e66d7d0 (diff)
downloadayylmao-4ee2ec70989449dc1a731937782afad57b28621b.tar.gz
Add manual page
-rw-r--r--Makefile6
-rw-r--r--ayylmao.121
2 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7e1b43d..4da36f3 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ LDFLAGS = -L $(PREFIX)/lib -l ayylmao
all : ayylmao.dynamic ayylmao.static
-install: install-dynamic
+install: install-dynamic install-man
install-dynamic : ayylmao.dynamic
install -m 0755 -- ayylmao.dynamic $(PREFIX)/bin/ayylmao
@@ -16,6 +16,10 @@ install-dynamic : ayylmao.dynamic
install-static : ayylmao.static
install -m 0755 -- ayylmao.static $(PREFIX)/bin/ayylmao
+install-man:
+ mkdir -p -- "$(PREFIX)"/share/man/man1
+ install -m 0644 -- *.1 "$(PREFIX)"/share/man/man1
+
clean :
rm -f -- ayylmao.dynamic ayylmao.static
diff --git a/ayylmao.1 b/ayylmao.1
new file mode 100644
index 0000000..b6bb4e0
--- /dev/null
+++ b/ayylmao.1
@@ -0,0 +1,21 @@
+.TH AYYLMAO 1 2016-03-22 "ayy lmao" "Stoned Alien User's Manual"
+.SH NAME
+ayylmao \- print "ayy" and "lmao" to stdout
+.SH SYNOPSIS
+.nf
+.B $ ayylmao
+.br
+ayy
+.br
+lmao
+.sp
+.SH DESCRIPTION
+.BR ayylmao(1)
+prints the strings "ayy" and "lmao", each followed by a newline, to stdout.
+.SH EXIT VALUE
+Always succeeds.
+.SH NOTES
+ayy lmao
+.SH SEE ALSO
+.BR ayy (3),
+.BR lmao (3)