From: Phillip Berndt Date: Sun, 17 Feb 2019 11:50:55 +0000 (+0100) Subject: Merge branch 'master' into manpage X-Git-Tag: 1.8~4^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a2e8abfc4f7294d792ecbba68b7f47954e6599ea;p=deb_pkgs%2Fautorandr.git Merge branch 'master' into manpage --- a2e8abfc4f7294d792ecbba68b7f47954e6599ea diff --cc Makefile index 989c250,cfac2e6..a36d2e0 --- a/Makefile +++ b/Makefile @@@ -121,19 -126,13 +126,27 @@@ 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 + ++# Rules for launcher + install_launcher: + gcc -Wall contrib/autorandr_launcher/autorandr_launcher.c -o contrib/autorandr_launcher/autorandr_launcher -lxcb -lxcb-randr + install -D -m 755 contrib/autorandr_launcher/autorandr_launcher ${DESTDIR}${PREFIX}/bin/autorandr_launcher + + uninstall_launcher: + rm -f ${DESTDIR}${PREFIX}/bin/autorandr_launcher + TARGETS=$(DEFAULT_TARGETS) install: $(patsubst %,install_%,$(TARGETS)) uninstall: $(patsubst %,uninstall_%,$(TARGETS))