summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-08 14:01:53 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-08 14:01:53 (GMT)
commit81bc7610abe68d158683877f04fc46c2a32c3b44 (patch)
treef7cf07e5209ff58453bf627bd2160f5d59db7a43 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent9ceafdfd4deec57c3a7f8650b2466da1d0aa0d3f (diff)
downloadCMake-81bc7610abe68d158683877f04fc46c2a32c3b44.zip
CMake-81bc7610abe68d158683877f04fc46c2a32c3b44.tar.gz
CMake-81bc7610abe68d158683877f04fc46c2a32c3b44.tar.bz2
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`.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx4
1 files changed, 4 insertions, 0 deletions
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);