]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Makefile.am: allow manually installing config files 1782/head
authorZane van Iperen <zane@zanevaniperen.com>
Tue, 2 Jan 2024 05:37:31 +0000 (15:37 +1000)
committerZane van Iperen <zane@zanevaniperen.com>
Sun, 28 Jan 2024 16:33:53 +0000 (02:33 +1000)
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.

Makefile.am

index d9cfbf6ec6f496cdc0132a8df6a50c3ff594e59d..acf7f8feaa249d26b328fee4f2545573c658f9b2 100644 (file)
@@ -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)
@@ -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):
@@ -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