From 65d0d41700c38939d0c421fc51f185194cf8beae Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Wed, 11 Sep 2013 14:56:39 +0100 Subject: [PATCH] autotools: Use -local variants of all, clean and distclean to support using automake targets. --- Makefile.am | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index dbaf3441..982f05ab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,7 +30,15 @@ EXTRA_DIST += ChangeLog ##### standard build actions: -all: src/speak src/libespeak.so src/libespeak.a src/espeak src/espeakedit espeak-data/phontab dictionaries docs/speak_lib.h +all-local: \ + src/speak \ + src/libespeak.so \ + src/libespeak.a \ + src/espeak \ + src/espeakedit \ + espeak-data/phontab \ + docs/speak_lib.h \ + dictionaries install-data-hook: rm -rf $(DESTDIR)$(DATADIR) @@ -49,10 +57,10 @@ install-exec-hook: $(LN_SF) libespeak.so.$(LIB_VERSION) $(DESTDIR)$(LIBDIR)/libespeak.so $(INSTALL) -pm 644 src/speak_lib.h $(DESTDIR)$(INCDIR) -clean: +clean-local: cd src && rm -f *.o *~ && cd .. -distclean: clean +distclean-local: rm -f src/speak rm -f src/espeak rm -f src/espeakedit