]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config: Put the -D option as first argument to INSTALL_DATA
authorMark Wielaard <mark@klomp.org>
Wed, 8 Jan 2025 11:37:35 +0000 (12:37 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 10 Jan 2025 22:34:00 +0000 (23:34 +0100)
INSTALL_DATA uses the install program to install files. The GNU
coreutils implementation of install takes options anywhere. Other
implementations of install might take options only before the source
and destination arguments.

* config/Makefile.am (all-local): Move -D option before
file and directory arguments.

Signed-off-by: Mark Wielaard <mark@klomp.org>
config/Makefile.am

index 2dcbe94eaef12e349e3bbade849a622811fd210b..11693ed47dadcc78d62b5f9a33f53728e3060bc0 100644 (file)
@@ -42,9 +42,9 @@ all-local:
        sed -i 's/{prefix}/prefix/g' profile.fish
 
 install-data-local:
-       $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
-       $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
-       $(INSTALL_DATA) profile.fish -D $(DESTDIR)$(datadir)/fish/vendor_conf.d/debuginfod.fish
+       $(INSTALL_DATA) -D profile.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
+       $(INSTALL_DATA) -D profile.csh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
+       $(INSTALL_DATA) -D profile.fish $(DESTDIR)$(datadir)/fish/vendor_conf.d/debuginfod.fish
        mkdir -p $(DESTDIR)$(sysconfdir)/debuginfod
        if [ -n "@DEBUGINFOD_URLS@" ]; then \
                echo "@DEBUGINFOD_URLS@" > $(DESTDIR)$(sysconfdir)/debuginfod/elfutils.urls; \