Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Mar 7, 2024
1 parent 97a4077 commit da724a6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PREFIX ?= /usr
BINDIR := $(PREFIX)/bin
LIBDIR := $(PREFIX)/lib
DATADIR := $(PREFIX)/share
MANDIR ?= $(PREFIX)/share/man

DESTDIR ?=
USERINSTALL ?= xfalse
Expand Down Expand Up @@ -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
# vim: ft=make

0 comments on commit da724a6

Please sign in to comment.