@echo
@echo 'E.g. "make install TARGETS='autorandr pmutils' PM_UTILS_DIR=/etc/pm/sleep.d".'
@echo
- @echo "By default, if xcb libraries are available, autorandr prefers to"
- @echo "install a launcher that listens for X11 randr events and runs"
- @echo "autorandr whenever something changes, over udev/systemd rules."
+ @echo "An additional TARGETS variable \"launcher\" is available. This"
+ @echo "installs a launcher called \"autorandr_launcher\". The launcher"
+ @echo "is able to be run by the user and calls autorandr automatically"
+ @echo "without using udev rules. The launcher is an alternative to the"
+ @echo "udev/systemd setup that is more stable for some users."
@echo
@echo "The following additional targets are available:"
@echo
@echo " make deb creates a Debian package"
+ @echo " make rpm creates a RPM package"
# Rules for autorandr itself
DEFAULT_TARGETS=autorandr
# Rules for udev
UDEV_RULES_DIR:=$(shell pkg-config --variable=udevdir udev 2>/dev/null)/rules.d
-ifneq (,$(UDEV_RULES_DIR),y)
+ifneq (/rules.d,$(UDEV_RULES_DIR))
DEFAULT_TARGETS+=udev
endif
# Rules for launcher
LAUNCHER_FLAGS=$(shell pkg-config --libs --cflags pkg-config xcb xcb-randr 2>/dev/null)
-ifneq (,$(LAUNCHER_FLAGS))
-DEFAULT_TARGETS+=launcher
-DEFAULT_TARGETS:=$(filter-out systemd udev,$(DEFAULT_TARGETS))
-endif
-
install_launcher:
gcc -Wall $(CFLAGS) contrib/autorandr_launcher/autorandr_launcher.c -o contrib/autorandr_launcher/autorandr-launcher $(LAUNCHER_FLAGS)
- install -D -m 755 contrib/autorandr_launcher/autorandr_launcher ${DESTDIR}${PREFIX}/bin/autorandr-launcher
+ install -D -m 755 contrib/autorandr_launcher/autorandr-launcher ${DESTDIR}${PREFIX}/bin/autorandr-launcher
install -D -m 644 contrib/etc/xdg/autostart/autorandr-launcher.desktop ${DESTDIR}/${XDG_AUTOSTART_DIR}/autorandr-launcher.desktop
ifneq ($(PREFIX),/usr/)