all:
- ${CC} -o pong pong.c ${CLAGS} -lcurses ${LDFLAGS}
+ ${CC} -o pong pong.c ${CLAGS} -Wall -Wextra -std=c99 -pedantic \
+ -lcurses ${LDFLAGS}
+ scdoc < pong.1.scd > pong.1
-install:
+install: all
+ mkdir -p /usr/local/bin /usr/local/share/man/man1
cp pong /usr/local/bin/pong
+ cp pong.1 /usr/local/share/man/man1/pong.1
uninstall:
- rm /usr/local/bin/pong
+ rm /usr/local/bin/pong /usr/local/share/man/man1/pong.1
.PHONY: all
pong
----
-Simple pong game in ncurses.
+Simple pong game in ncurses. Further documentation can be found pong(1).
Copyright Armaan Bhojwani MIT License 2021.
--- /dev/null
+pong(1)
+
+# NAME
+pong - play a game of pong
+
+# SYNOPSIS
+pong
+
+# DESCRIPTION
+Simple text-mode pong game in ncurses
+
+# AUTHOR
+Armaan Bhojwani <me@armaanb.net>
+
+https://sr.ht/~armaan/pong
+
+# LICENSE
+Copyright Armaan Bhojwani MIT License 2021.