From c5f617c33b8cb12c592c1bf43903325de99e41c4 Mon Sep 17 00:00:00 2001 From: fef Date: Sun, 28 Nov 2021 05:51:45 +0100 Subject: [PATCH] add makefile for easier installation --- Makefile | 11 +++++++++++ README.md | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e34c33c --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +gaycat: + $(CC) -O2 -o gaycat gaycat.c + +install: gaycat + install gaycat /usr/local/bin/ + mkdir -p /usr/local/share/man/man6 + install gaycat.6 /usr/local/share/man/man6/ + +all: gaycat + + diff --git a/README.md b/README.md index d059d88..1bb76d8 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,17 @@ like the rainbow pride flag. On any POSIX compliant system, type ``` -make gaycat +make ``` and you get the `gaycat` executable. +To install the program and manual page on your system, type + +``` +make install +``` + +as root. ## Usage