+ @echo "Call \"make uninstall\" to remove this program."
+ @echo
+ @echo "The following components were autodetected and will be installed:"
+ @echo " "$(DEFAULT_TARGETS)
+ @echo
+ @echo "The following locations have been detected (from pkg-config):"
+ @echo " - SYSTEMD_UNIT_DIR: $(SYSTEMD_UNIT_DIR)"
+ @echo " - UDEV_RULES_DIR: $(UDEV_RULES_DIR)"
+ @echo " - PM_SLEEPHOOKS_DIR: $(PM_SLEEPHOOKS_DIR)"
+ @echo
+ @echo "You can use the TARGETS variable to override this, but need to set"
+ @echo "the SYSTEMD_UNIT_DIR, PM_SLEEPHOOKS_DIR and UDEV_RULES_DIR variables"
+ @echo "in case they were not detected correctly."
+ @echo
+ @echo 'E.g. "make install TARGETS='autorandr pmutils' PM_UTILS_DIR=/etc/pm/sleep.d".'
+ @echo
+ @echo "The following additional targets are available:"
+ @echo
+ @echo " make deb creates a Debian package"
+
+# Rules for autorandr itself
+DEFAULT_TARGETS=autorandr
+
+install_autorandr:
+ install -D -m 755 autorandr.py ${DESTDIR}${PREFIX}/bin/autorandr
+
+uninstall_autorandr:
+ rm -f ${DESTDIR}${PREFIX}/bin/autorandr
+
+# Rules for bash_completion
+BASH_COMPLETION_DIR=/etc/bash_completion.d
+HAVE_BASH_COMPLETION=$(shell [ -d /etc/bash_completion.d/ ] && echo "y")
+ifeq ($(HAVE_BASH_COMPLETION),y)
+DEFAULT_TARGETS+=bash_completion
+endif