add makefile for easier installation

This commit is contained in:
anna 2021-11-28 05:51:45 +01:00
parent 6f259485b2
commit c5f617c33b
Signed by: fef
GPG key ID: EC22E476DC2D3D84
2 changed files with 19 additions and 1 deletions

11
Makefile Normal file
View file

@ -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

View file

@ -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