From 3b8350a1a46bab0b45261d24f71f72866de87596 Mon Sep 17 00:00:00 2001 From: xSlendiX Date: Sat, 24 Dec 2022 20:12:18 +0200 Subject: [PATCH] Add man to make install. Signed-off-by: xSlendiX --- Makefile | 9 +++++++-- man/tbuild.1 | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7163ee0..756ccac 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ CC=cc CFLAGS=-O0 -ggdb -Wall -lpthread +DESTDIR=/usr/local .PHONY: all clean install @@ -23,7 +24,11 @@ ifeq ($(OS),Windows_NT) copy tbuild "C:\tbuild" ; \ copy RedSeaGen.exe "C:\tbuild" ; else - install tbuild /usr/local/bin - install RedSeaGen /usr/local/bin + install tbuild $(DESTDIR)/bin + install RedSeaGen $(DESTDIR)/bin + install -d $(DESTDIR)/share/man/man1 + install -m 644 man/*.1 $(DESTDIR)/share/man/man1 + install -d $(DESTDIR)/man/man5 + install -m 644 man/*.5 $(DESTDIR)/share/man/man5 endif diff --git a/man/tbuild.1 b/man/tbuild.1 index aacc84e..171968c 100644 --- a/man/tbuild.1 +++ b/man/tbuild.1 @@ -16,7 +16,7 @@ features various features such as dependency mangement with git and ISO.C generation. .SH "TBUILD COMMANDS" .PP -\fBtbuild-init\R(1) +\fBtbuild-init\fR(1) .RS 4 Initialize a new project.\& .RE