Extended 'install' target to install man pages as well

This commit is contained in:
2023-04-05 00:09:02 -05:00
parent 8c05336c73
commit 862fb9f944

View File

@@ -2,6 +2,7 @@ CC=gcc
CFLAGS=
LIB_FILE = libeasysock.so
.PHONY: all
all: $(LIB_FILE)
@@ -40,6 +41,8 @@ install: $(LIB_FILE)
install -d $(DESTDIR)$(PREFIX)/include
install -m 644 easysock.h $(DESTDIR)$(PREFIX)/include
install -m 644 docs/man3/*.gz /usr/share/man/man3/
.PHONY: clean
clean:
rm *.o
@@ -50,3 +53,4 @@ clean:
uninstall:
rm $(DESTDIR)$(PREFIX)/lib/$(LIB_FILE)
rm $(DESTDIR)$(PREFIX)/include/easysock.h