From ed18e418cac0477b7b823aca5c22b69819a22412 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 12 Sep 2013 10:18:54 +0100 Subject: [PATCH] autotools: Support uninstalling the installed espeak-data when 'make uninstall' is run. --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 863bbe90..39e5ed38 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,8 +40,10 @@ all-local: \ docs/speak_lib.h \ dictionaries -install-data-hook: +uninstall-hook: rm -rf $(DESTDIR)$(DATADIR) + +install-data-hook: uninstall-hook $(MKDIR) $(DESTDIR)$(DATADIR) cp -prf espeak-data/* $(DESTDIR)$(DATADIR)