aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxSlendiX <slendi@socopon.com>2022-12-24 20:12:18 +0200
committerxSlendiX <slendi@socopon.com>2022-12-24 20:12:18 +0200
commit3b8350a1a46bab0b45261d24f71f72866de87596 (patch)
tree534ea333c5b9beb59b05749d4b0e281701d83b2f
parent1946864ab3a7e0d88dec6253d1848e7475558d18 (diff)
Add man to make install.
Signed-off-by: xSlendiX <slendi@socopon.com>
-rw-r--r--Makefile9
-rw-r--r--man/tbuild.12
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