From c1542b663b631436c2753eb509996d721c8e67f8 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 26 Jan 2021 07:29:37 +0100 Subject: [PATCH] Let the uninstall target remove the config file if DESTDIR is set ... and properly announce the deletion of the configuration files. Apparently I broke this in 2008 (cc77d4eec4). --- GNUmakefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index c1e4931b..e5fdc642 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1039,8 +1039,8 @@ uninstall: CONF_DEST LOG_DEST PID_DEST check_doc done ;\ fi @$(ECHO) Removing $(PROGRAM) config files - -@for i in $(DESTDIR)$(CONFIGS); do \ - test -f $(CONF_DEST)/$$i && $(ECHO) Removing $$i ;\ + -@for i in $(CONFIGS); do \ + test -f $(DESTDIR)$(CONF_DEST)/$$i && $(ECHO) Removing $$i ;\ $(RM) $(DESTDIR)$(CONF_DEST)/$$i $(DESTDIR)$(CONF_DEST)/$$i~ $(DESTDIR)$(CONF_DEST)/$$i.new ;\ done -@test -d $(DESTDIR)$(CONF_DEST)/templates && $(RM) -r $(DESTDIR)$(CONF_DEST)/templates &&\ -- 2.39.2