summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-06 02:42:04 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-06 02:42:14 -0800
commita0858d48652db9f3117ad1ab688622d775e2198b (patch)
tree2e427a9c20f0793560e2da51cacf64ef9e229c7b /Makefile
parentce47450466b8f8cc525444044b8c6407746fb653 (diff)
did I change something?
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e27b253..8859a0b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,17 @@
CC=gcc
CFLAGS=-I. -pthread
DESTDIR=/usr/local/bin
-
+MANDIR=/usr/share/man/
generate:
$(CC) -o snake3 snake.c vector.c conio.c $(CFLAGS)
install:
cp snake3 $(DESTDIR)
+ groff -Tascii -man doc/snake3.man > $(MANDIR)/man1/snake3.1
clean:
rm snake3
uninstall:
-rm $(DESTDIR)/snake3
+ -rm $(MANDIR)/man1/snake3.1