PR25461: uninstall /etc/profile.d files for distuninstallcheck
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 8 Oct 2020 15:56:15 +0000 (11:56 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 8 Oct 2020 15:56:56 +0000 (11:56 -0400)
No one uses "make uninstall" except the buildbot.  Let's make it
happy too.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
config/ChangeLog
config/Makefile.am

index 9c31925..f93bbfd 100644 (file)
@@ -1,7 +1,11 @@
+2020-10-08  Frank Ch. Eigler  <fche@redhat.com>
+
+       * Makefile.am (uninstall-local): Uninstall the new profile.d files.
+
 2020-10-01  Frank Ch. Eigler  <fche@redhat.com>
 
        PR25461
-       * profile.sh.in, profile.csh.in: New files for /etc/profiles.d
+       * profile.sh.in, profile.csh.in: New files for /etc/profile.d
        to define $DEBUGINFOD_URLS.
        * elfutils.spec.in: Configure with --enable-debuginfod-urls.
        * Makefile.am: Install them.
index ae6ffc9..e56f32a 100644 (file)
@@ -42,6 +42,9 @@ 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
 
+uninstall-local:
+       rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
+
 if MAINTAINER_MODE
 $(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
        @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \