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"