]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - Makefile
Changed file paths to use relative names in manpage Makefile target
[deb_pkgs/autorandr.git] / Makefile
index 87b1b4dd0a9ac434d39e496bea4b826bc7a2205f..989c250fb9860427b2e34c7601a08d4086250b0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,18 @@ uninstall_udev:
        $(if $(UDEV_RULES_DIR),,$(error UDEV_RULES_DIR is not defined))
        rm -f ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules
 
+# Rules for manpage
+MANDIR:=${PREFIX}/share/man/man1
+DEFAULT_TARGETS+=manpage
+
+install_manpage:
+       mkdir -p ${DESTDIR}/${MANDIR}
+       cp autorandr.1 ${DESTDIR}/${MANDIR}
+       mandb -qp
+
+uninstall_manpage:
+       rm -f ${DESTDIR}/${MANDIR}/autorandr.1
+       mandb -q
 
 TARGETS=$(DEFAULT_TARGETS)
 install: $(patsubst %,install_%,$(TARGETS))