]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blob - Makefile
Merge branch 'feature/preswitch_scripts' of http://github.com/torrancew/autorandr
[deb_pkgs/autorandr.git] / Makefile
1 all:
2         @echo "Call \"make install\" to install this program."
3         @echo "Call \"make hotplug\" to install matching hotplug events."
4
5 INSTALL_PATH=/usr/local/bin
6 install:
7         install -D auto-disper ${DESTDIR}${INSTALL_PATH}/auto-disper
8         install -D -m 755 autorandr ${DESTDIR}${INSTALL_PATH}/autorandr
9         install -D -m 644 bash_completion/autorandr ${DESTDIR}/etc/bash_completion.d/autorandr
10
11 hotplug:
12         install -D -m 755 pm-utils/40autorandr ${DESTDIR}/etc/pm/sleep.d/40autorandr
13         install -D -m 644 udev/40-monitor-hotplug.rules ${DESTDIR}/etc/udev/rules.d/40-monitor-hotplug.rules
14 ifeq (${USER},root)
15         udevadm control --reload-rules
16 else
17         @echo "Please run this command as root:"
18         @echo "    udevadm control --reload-rules"
19 endif