Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mpDris2-remote.service, --abort-on-disconnect flag #165

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Make: Automate .service.in => .service production
Use an implicit pattern rule to convert any `.service.in` file
into a `.service` file.
  • Loading branch information
ferdnyc committed Jan 2, 2025
commit fdb8acd2e2e8ca36a59904109e0dabae721b8824
8 changes: 4 additions & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ dist_desktop_DATA = mpdris2.desktop
autostart_DATA = mpdris2.desktop
dist_doc_DATA = mpDris2.conf
nodist_dbus_DATA = org.mpris.MediaPlayer2.mpd.service
nodist_systemd_user_DATA = mpDris2.service
nodist_systemd_user_DATA = mpDris2.service mpDris2-remote.service

EXTRA_DIST = \
org.mpris.MediaPlayer2.mpd.service.in \
mpDris2.service.in \
mpDris2-remote.service.in \
mpDris2.in.py

CLEANFILES = \
org.mpris.MediaPlayer2.mpd.service \
mpDris2.service \
mpDris2-remote.service \
mpDris2

edit = sed -e 's|@bindir[@]|$(bindir)|g' \
Expand All @@ -29,8 +31,6 @@ mpDris2: mpDris2.in.py Makefile
$(AM_V_GEN) $(edit) $< > [email protected] && mv [email protected] $@
$(AM_V_at) chmod a+x $@

org.mpris.MediaPlayer2.mpd.service: org.mpris.MediaPlayer2.mpd.service.in Makefile
%.service: %.service.in Makefile
$(AM_V_GEN) $(edit) $< > [email protected] && mv [email protected] $@

mpDris2.service: mpDris2.service.in Makefile
$(AM_V_GEN) $(edit) $< > [email protected] && mv [email protected] $@