X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=142a08cf0b11b27f52aceb2bd9a7a56020b4e8cc;hb=a223d6b44e70c25d4d39c51a19a787dce38bde82;hp=65d4708a0d7a562b4568ea25284115f9fb435c70;hpb=b70b81650a8bf5d06add446147f5402420b47149;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 65d4708..142a08c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ DESTDIR=/ PREFIX=/usr/ -.PHONY: all install uninstall autorandr bash_completion pmutils systemd udev +.PHONY: all install uninstall autorandr bash_completion autostart_config pmutils systemd udev all: @echo "Call \"make install\" to install this program." @@ -37,6 +37,16 @@ install_bash_completion: uninstall_bash_completion: rm -f ${DESTDIR}/${BASH_COMPLETION_DIR}/autorandr +# Rules for autostart config +XDG_AUTOSTART_DIR=/etc/xdg/autostart +DEFAULT_TARGETS+=autostart_config + +install_autostart_config: + install -D -m 644 contrib/etc/xdg/autostart/autorandr.desktop ${DESTDIR}/${XDG_AUTOSTART_DIR}/autorandr.desktop + +uninstall_autostart_config: + rm -f ${DESTDIR}/${XDG_AUTOSTART_DIR}/autorandr.desktop + # Rules for pmutils PM_UTILS_DIR=/etc/pm/sleep.d HAVE_PMUTILS=$(shell [ -x /usr/sbin/pm-suspend ] && echo "y")