From 81bc7610abe68d158683877f04fc46c2a32c3b44 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 8 Mar 2018 09:01:53 -0500 Subject: Makefile: Fix "make clean" when there are no targets The empty `clean` target was missing from `Makefile2`. Add one like we already have for `all` and `preinstall`. --- Source/cmGlobalUnixMakefileGenerator3.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 43032fb..c92df55 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -241,6 +241,10 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile2() lg->WriteMakeRule(makefileStream, "The main recursive preinstall target", "preinstall", depends, no_commands, true); + // Write an empty clean: + lg->WriteMakeRule(makefileStream, "The main recursive clean target", "clean", + depends, no_commands, true); + // Write out the "special" stuff lg->WriteSpecialTargetsTop(makefileStream); -- cgit v0.12