Matheus Horstmann
d9b7d0b70f
Fix makefile
...
Signed-off-by: Matheus Horstmann <horstmannmat@hotmail.com>
2023-06-22 16:31:50 +02:00
Thiago Kenji Okada
0ac2f9a0ed
Fix autorandr-kde.desktop PREFIX
2023-06-22 11:35:14 +02:00
Patrick Deubel
ac8fb582ce
Replaced MAKECMDGOALS with DEFAULT_TARGETS to check for systemd
...
when installing udev rules
MAKECMDGOALS does not containg "systemd" although systemd is used
on the system. Thus, an incorrect udev rule is created. DEFAULT_TARGETS
however does contain "systemd", because of a check earlier in the
Makefile (lines 83-85).
2023-04-25 18:21:44 +02:00
Phillip Berndt
b08336a3b9
Revert "Use add or remove instead of change"
...
This reverts commit 14f5a94521
.
The revert fixes #324
2023-01-24 12:52:53 +01:00
Matt Alexander
cbae7c8eff
Added autostart that works in KDE
2023-01-23 11:22:50 +01:00
DawidJanczak
14f5a94521
Use add or remove instead of change
...
Change gets triggered by probably unrelated things like starting a
browser. This should fix
https://github.com/phillipberndt/autorandr/issues/310
2023-01-23 11:21:05 +01:00
Florian Schmaus
ef1896d776
Makefile: fix install_udev target by s/TARGETS/MAKECMDGOALS/
...
A Gentoo user reported [1] that the 'install_udev' target would
install a systemd-flavored udev rules, despite the 'systemd' target
not being selected. Replacing 'TARGETS' with 'MAKECMDGOALS' in the
Makefile rule fixes this .
I am not sure where the TARGETS variable origniates from, but GNU make
uses MAKECMDGOALS (FreeBSD make uses .TARGETS, i.e., with a leading
dot). So if further portability between make variants is required,
then this needs to be adjusted.
1: https://bugs.gentoo.org/803545#c3
Fixes: ae1f18a060
("udev rule: Dynamically call either systemd or autorandr directly depending on whether systemd unit is available")
2022-10-20 11:19:56 +02:00
Sebastian Hiebl
1235a3d4c8
add autorandr-lid-listener.service to install target in Makefile
2022-07-04 19:00:31 +02:00
Mateusz Piotrowski
2bc71d5627
Makefile: Do not use -D with install(1)
...
The -D flag is not portable across install(1) implementations.
For portability, it's better to use "mkdir; install" instead of
"install -D".
2022-03-15 15:39:51 +01:00
Phillip Berndt
73d7e36a2d
Clean up autorandr-launcher build process
2020-05-04 09:20:25 +02:00
Phillip Berndt
8da5b1dc0b
Undo making the launcher the default
...
See #195
2020-05-04 09:19:53 +02:00
gardar
aa7f536331
Fix dash/underscore typo in makefile
2020-01-02 17:04:49 +00:00
Phillip Berndt
4452340c52
Fix two minor issues with the Makefile
2019-12-31 11:43:50 +01:00
Phillip Berndt
e1c85639c3
Prefer X11 launcher (like srandr) over udev/systemd setup
...
See #162 . The X11 launcher, that waits for randr events in X11 and runs
autorandr manually, proved to be more reliable than the setup using udev
and systemd. Make it the default.
2019-12-31 11:41:27 +01:00
Maciej Sitarz
c58de9b13c
Improved .spec file for RPM builds
2019-05-23 14:03:48 +02:00
Phillip Berndt
102640fe27
Remove mandb call (See #144 )
2019-03-18 21:13:22 +01:00
Phillip Berndt
a2e8abfc4f
Merge branch 'master' into manpage
2019-02-17 12:50:55 +01:00
somers-all-the-time
e01aa67592
Changed file paths to use relative names in manpage Makefile target
2019-01-29 11:23:55 -06:00
somers-all-the-time
6c60608771
Added target manpage to Makefile
2019-01-19 13:38:25 -06:00
Ricky Liou
7f6adbe162
Add launcher commands to Makefile
2018-11-04 11:45:00 -08:00
Nathan Schulte
3b75ebfc94
cleanup bash-completion build logic
2017-08-11 22:58:25 -05:00
Nathan Schulte
5ec2d52568
use pkg-config for bash-completion completions dir
2017-08-11 22:58:25 -05:00
Phillip Berndt
aad63c5058
Call systemctl with --no-block
from udev rule ( Fixes #61 )
2017-06-07 10:31:18 +02:00
Phillip Berndt
28dc3cdea6
Do not automatically reload/update daemons from Makefile
...
Instead, write an info message to the console. See #60 . This affects
udev and systemd.
2017-01-20 15:14:15 +01:00
Phillip Berndt
ae1f18a060
udev rule: Dynamically call either systemd or autorandr directly depending on whether systemd unit is available
2017-01-20 15:14:15 +01:00
Phillip Berndt
94ae61de9d
Update scripts' PREFIX in Makefile's install targets
2017-01-20 15:14:15 +01:00
Phillip Berndt
2184cf58ac
Prefer systemd sleep.target over pmutils
2017-01-20 15:14:15 +01:00
Rasmus Wriedt Larsen
33df4b3935
Makefile: fix install path for udev rules
...
`pkg-config --variable=udevdir udev` returns the root folder for udev.
2016-11-06 00:41:05 +01:00
Daniel Hahler
729e8caf52
Makefile: use pkg-config
...
This avoids patching the Makefile in Arch's autorandr-git package [1]
and should help with packaging this in general.
1: https://aur.archlinux.org/packages/autorandr-git/
2016-10-14 16:46:07 +02:00
Phillip Berndt
76845107dd
Install autostart desktop file by default
2016-10-02 21:14:47 +02:00
Nazar Mokrynskyi
64a12d5fd8
Add xdg autostart config so that configuration will be applied on login.
...
Small fix for files searching.
2016-10-01 05:55:37 +03:00
Phillip Berndt
b70b81650a
Added Makefile target to create a deb archive
...
This largely ignores all Debian packaging standards, and simply creates
a Debian package which contains the files that would be installed if the
user typed `sudo make install' on his (Debian) system.
2016-09-19 14:32:28 +02:00
Phillip Berndt
bae286948a
Introduce --batch option to autorandr: Run autorandr for each user with an X11 session
...
This is an attempt to resolve #45 and it might also be a better
alternative to #52 , #44 and #39 .
2016-09-16 16:19:24 +02:00
Phillip Berndt
1aec0f4a2d
udev requires pmutils as well (See issue #45 )
2016-05-31 15:23:52 +02:00
Phillip Berndt
6cd92b6570
Fix systemd detection, closes #48
2016-05-09 09:16:16 +02:00
Daniel Hahler
4597a78e6a
The 40autorandr script needs to be executable for udev
...
Otherwise it will not be executed:
… systemd-udevd[32358]: failed to execute '/etc/pm/sleep.d/40autorandr' '/etc/pm/sleep.d/40autorandr thaw': Permission denied
… systemd-udevd[32355]: Process '/etc/pm/sleep.d/40autorandr thaw' failed with exit code 2.
2015-12-02 12:43:19 +01:00
Phillip Berndt
dcb1e65fd1
Only use name of executable in systemd detection (See #38 )
2015-11-24 19:10:24 +01:00
Phillip Berndt
48713bbae2
Improved systemd detection (See bug #38 , thanks to @blueyed)
2015-11-24 19:05:46 +01:00
Phillip Berndt
0e7fb8b21d
Moved contributed scripts/files to the contrib/ folder and updated the Makefile to autodetect the system
...
systemd service file contributed by github user @blueyed. see #29 .
2015-11-11 11:22:24 +01:00
Phillip Berndt
e0dfa631a2
Removed legacy autorandr (see the legacy branch)
2015-01-27 08:26:10 +01:00
tachylatus
6a04c1b913
Support DESTDIR + improvements for easy packaging
2014-01-30 12:31:29 +01:00
Phillip Berndt
43bb98c613
Merge remote-tracking branch 'queezythegreat/master'
...
Conflicts:
Makefile
2013-12-02 10:50:40 +01:00
Hermann Kraus
085ee73781
Install udev rules.
2013-11-18 00:34:43 +01:00
Hermann Kraus
bbdf3fb639
Added Makefile to install program.
2013-11-17 23:07:52 +01:00
QueezyTheGreat
2509ac3b83
Minor fixes and improvements
2013-06-26 20:40:29 +02:00
QueezyTheGreat
c71e1097d5
Minor fixes and improvements
2013-06-26 20:31:39 +02:00
QueezyTheGreat
0f31c5e5b6
Minor code refactoring
2013-06-26 20:09:14 +02:00
QueezyTheGreat
82a1046663
Updated Makefile, minor change to inotify monitor
2013-06-26 19:45:31 +02:00
QueezyTheGreat
74a310b76d
Added install makefile and autorandr inotify monitor
2013-06-26 19:33:16 +02:00