ref: 5ea9f02649303e66b30b449908cbfc60c818b2d2
parent: daf98078950f5c4fefb9bca1f625e11c9863b256
author: mkf <mkf@cloud9p.org>
date: Thu May 23 14:39:29 EDT 2024
Makefile: generate documention as well
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CC=cc
CFLAGS +=-Dunix -pthread
+NROFF=mandoc
Lib=\
engine.o\
@@ -8,10 +9,11 @@
netclient.o\
Cli= cli.o
+Clinet = clinet.o
Srv4= srv4.o
Srv= srv.o
-all: cli srv4
+all: cli srv4 srv
%.o: %.c %.h
$(CC) $(CFLAGS) -c $< -o $@
@@ -24,6 +26,7 @@
srv: ${Srv} ${Lib}
$(CC) $(CFLAGS) -o $@ ${Srv} ${Lib}
-
+docs:
+ $(NROFF) doc/glendy2.man | col -b > doc/glendy2.txt
clean:
- rm -f *.o *.5 *.6 *.7 *.8 cli srv
+ rm -f *.o *.5 *.6 *.7 *.8 cli srv srv4 doc/glendy2.txt