2013-11-17 22:07:52 +00:00
|
|
|
all:
|
|
|
|
@echo "Call \"make install\" to install this program."
|
|
|
|
@echo "Call \"make hotplug\" to install matching hotplug events."
|
|
|
|
|
|
|
|
INSTALL_PATH=/usr/local/bin
|
|
|
|
install:
|
2015-01-27 07:25:04 +00:00
|
|
|
install -D -m 755 autorandr.py ${DESTDIR}${INSTALL_PATH}/autorandr
|
2014-01-30 11:31:29 +00:00
|
|
|
install -D -m 644 bash_completion/autorandr ${DESTDIR}/etc/bash_completion.d/autorandr
|
2013-11-17 22:07:52 +00:00
|
|
|
|
|
|
|
hotplug:
|
2014-01-30 11:31:29 +00:00
|
|
|
install -D -m 755 pm-utils/40autorandr ${DESTDIR}/etc/pm/sleep.d/40autorandr
|
|
|
|
install -D -m 644 udev/40-monitor-hotplug.rules ${DESTDIR}/etc/udev/rules.d/40-monitor-hotplug.rules
|
|
|
|
ifeq (${USER},root)
|
2013-12-02 09:50:40 +00:00
|
|
|
udevadm control --reload-rules
|
2014-01-30 11:31:29 +00:00
|
|
|
else
|
|
|
|
@echo "Please run this command as root:"
|
|
|
|
@echo " udevadm control --reload-rules"
|
|
|
|
endif
|