From 5a7675651f2b0f48e9df8793fc9e36eea6f80ff0 Mon Sep 17 00:00:00 2001 From: "benjamin.drung@gmail.com" Date: Thu, 24 Oct 2013 00:29:18 +0000 Subject: [PATCH] Remove files on distclean with the Makefile of their directory. --- Makefile.in | 4 ++-- lib-src/Makefile.in | 1 + src/Makefile.in | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2bf0bbdd2..8b951dcb9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -166,8 +166,8 @@ distclean: clean $(MAKE) -C locale distclean $(MAKE) -C lib-src distclean test ! -f tests/Makefile || $(MAKE) -C tests distclean + $(MAKE) -C src distclean - rm -f Makefile src/Makefile lib-src/Makefile - rm -f locale/Makefile src/configunix.h + rm -f Makefile rm -f config.log config.status config.cache diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 83c10cc28..e8c2edc42 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -196,6 +196,7 @@ distclean: test ! -f soundtouch/Makefile || $(MAKE) -C soundtouch distclean test ! -f twolame/Makefile || $(MAKE) -C twolame distclean rm -f @LOCAL_LIBS@ + rm -f Makefile # list here all the targets that aren't actually files to be made .PHONY: portsmf-recursive eexpat-recursive FileDialog-recursive \ diff --git a/src/Makefile.in b/src/Makefile.in index 7c3c1e7f6..2a14ed05c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -341,6 +341,9 @@ clean: rm -rf $(OBJS) $(LIBAUDACITY_OBJS) rm -f libaudacity.a AudacityHeaders.h.gch +distclean: clean + rm -f configunix.h Makefile + # # Rule for compiling C++ files #