X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=a22a058c0d1e80e09fdc24ee129e534914b48413;hb=43bb98c613862cdf8cb81a49a03b30f70c706816;hp=4d871ad2b4d5843c2eb1a5d1084b717f6a81fb75;hpb=74a310b76da7dbff1735387fecf4b1ba5f3f6cde;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index 4d871ad..a22a058 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,14 @@ +all: + @echo "Call \"make install\" to install this program." + @echo "Call \"make hotplug\" to install matching hotplug events." +INSTALL_PATH=/usr/local/bin install: - install auto-disper /usr/bin/ - install -m 774 autorandr /usr/bin/ - install -m 774 autorandr_monitor /usr/bin/ + install auto-disper ${INSTALL_PATH} + install -m 755 autorandr ${INSTALL_PATH} install -m 644 bash_completion/autorandr /etc/bash_completion.d/ - #install -m pm-utils/40autorandr /etc/pm/power.d/ + +hotplug: + install -m 755 pm-utils/40autorandr /etc/pm/sleep.d/ + install -m 644 udev/40-monitor-hotplug.rules /etc/udev/rules.d/ + udevadm control --reload-rules