Skip to content

Commit

Permalink
Makefile.am: allow manually installing config files
Browse files Browse the repository at this point in the history
Adds a "install-config-files" Makefile target that installs the config
files and dbus policies to DESTDIR=, regardless of whether
--with{,out}-configfiles is specified.
  • Loading branch information
vs49688 committed Jan 2, 2024
1 parent 165431a commit 0092857
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ shairport_sync_mpris_test_client_SOURCES = shairport-sync-mpris-test-client.c
shairport_sync_mpris_test_client_LDADD = lib_mpris_interface.a
endif

if INSTALL_CONFIG_FILES

CONFIG_FILE_INSTALL_TARGET = config-file-install-local
$(CONFIG_FILE_INSTALL_TARGET): scripts/shairport-sync.conf
install -d $(DESTDIR)$(sysconfdir)
Expand Down Expand Up @@ -257,8 +255,6 @@ $(MPRIS_POLICY_INSTALL_TARGET): $(MPRIS_POLICY_FILE)

endif # USE_MPRIS

endif # INSTALL_CONFIG_FILES

INSTALL_GROUP_TARGET = install-group-local

$(INSTALL_GROUP_TARGET):
Expand Down Expand Up @@ -329,10 +325,16 @@ $(INSTALL_CYGWIN_TARGET): scripts/shairport-sync-config

endif # INSTALL_CYGWIN_SERVICE

install-exec-hook: $(CONFIG_FILE_INSTALL_TARGET) \
install-config-files: $(CONFIG_FILE_INSTALL_TARGET) \
$(DBUS_POLICY_INSTALL_TARGET) \
$(MPRIS_POLICY_INSTALL_TARGET) \
$(INSTALL_SYSTEMV_TARGET) \
$(INSTALL_SYSTEMD_TARGET) \
$(INSTALL_FREEBSD_TARGET) \
$(INSTALL_CYGWIN_TARGET)

if INSTALL_CONFIG_FILES

install-exec-hook: install-config-files

endif

0 comments on commit 0092857

Please sign in to comment.