[PATCH 2/4] Fix "make distclean"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Conventionally, "make distclean" blows away autogenerated Makefiles and
configure output.  This is necessary to avoid confusion when using a
separate build directory:

$ ./configure
..
$ mkdir build; cd build; ./configure
..
configure: error: source directory already configured;
run "make distclean" there first

Our Makefile.am was broken.  We overrode automake's default distclean,
when what we meant to do was supplement it.  Easily fixed.

Signed-off-by: Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx>
diff --git a/Makefile.am b/Makefile.am
index f30995b..80f90a2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -61,7 +61,7 @@ DOCBOOKTOMAN := $(shell if command -v docbook-to-man >/dev/null 2>&1; then echo
	fi

# docbook2man creates extra crap files which need cleaning.
-distclean: killbuildmanpages
+distclean-local: killbuildmanpages

killbuildmanpages:
	rm -f doc/*.tmp manpage.refs manpage.links


--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux