From 1bfaf76dd09a12ccd0dea7f4ec7d1a34b38cbce5 Mon Sep 17 00:00:00 2001
From: Dan Fandrich <dan@coneharvesters.com>
Date: Wed, 1 Oct 2008 18:29:13 +0000
Subject: [PATCH] "make clean" now cleans out the docs and tests directories,
 too.

---
 CHANGES     | 3 +++
 Makefile.am | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CHANGES b/CHANGES
index b5ba5c5630..3b48c60ba2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
                                   Changelog
 
+Daniel Fandrich (1 Oct 2008)
+- "make clean" now cleans out the docs and tests directories, too.
+
 Daniel Stenberg (30 Sep 2008)
 - The libcurl FTP code now returns CURLE_REMOTE_FILE_NOT_FOUND error when SIZE
   gets a 550 response back for the cases where a download (or NOBODY) is
diff --git a/Makefile.am b/Makefile.am
index 5e3fcfdc37..38030152e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -77,6 +77,10 @@ endif
 examples:
 	@(cd docs/examples; $(MAKE) check)
 
+clean-local:
+	@(cd tests; $(MAKE) clean)
+	@(cd docs; $(MAKE) clean)
+
 #
 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
 # must contain the following line:
@@ -105,7 +109,7 @@ rpm:
 	mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
 
 #
-# Build a Solaris pkkgadd format file
+# Build a Solaris pkgadd format file
 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
 # file (which ends up back in this directory).
 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
-- 
GitLab