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