From da724a61edd875e5c776047ee0d616176d2fb637 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:11:11 -0800 Subject: [PATCH] Update Makefile --- Makefile.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 94b1c7e7f..1c95793f5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,6 +7,7 @@ PREFIX ?= /usr BINDIR := $(PREFIX)/bin LIBDIR := $(PREFIX)/lib DATADIR := $(PREFIX)/share +MANDIR ?= $(PREFIX)/share/man DESTDIR ?= USERINSTALL ?= xfalse @@ -109,12 +110,18 @@ user-install: $(info :: Installed under user-only location "$(DATADIR)/$(INSTALLDIR)") $(info :: To run you need to make sure "$(BINDIR)" is in your PATH) +.PHONY: docs +ulwgl-docs-install: + $(info :: Installing man pages) + @mkdir -p $(DESTDIR)$(MANDIR)/man1 + scdoc < docs/ulwgl.1.scd > $(OBJDIR)/ulwgl.1 + install -m644 $(OBJDIR)/ulwgl.1 $(DESTDIR)$(MANDIR)/man1/ulwgl.1 .PHONY: install ifeq ($(USERINSTALL), xtrue) -install: reaper-install ulwgl-install ulwgl-launcher-install user-install +install: reaper-install ulwgl-install ulwgl-launcher-install user-install ulwgl-docs-install else -install: reaper-install ulwgl-install ulwgl-launcher-install +install: reaper-install ulwgl-install ulwgl-launcher-install ulwgl-docs-install endif -# vim: ft=make \ No newline at end of file +# vim: ft=make