From: Fabian Keil Date: Tue, 26 Jan 2021 06:29:37 +0000 (+0100) Subject: Let the uninstall target remove the config file if DESTDIR is set X-Git-Tag: v_3_0_30~10 X-Git-Url: http://www.privoxy.org/gitweb/user-manual/contact.html?a=commitdiff_plain;h=c1542b663b631436c2753eb509996d721c8e67f8;p=privoxy.git 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). --- 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 &&\