From 7b1e2e5dd33fe8d2f3075e927ff198db8afae984 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Sun, 11 May 2014 17:44:05 +0200 Subject: [PATCH] build: uninstall-hook for opensc.conf --- etc/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/Makefile.am b/etc/Makefile.am index 910c2d1e..59f2d29f 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -30,3 +30,6 @@ install-exec-hook: opensc.conf else \ $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \ fi + +uninstall-hook: opensc.conf + rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf"