summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-09 12:38:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-03-09 12:38:49 (GMT)
commit98622e5e72a4bb705bf88b2d442c492dad45c072 (patch)
tree4baab672ff6aa98782a305f0d8888f0a57025d20 /Source
parentf8adde152f768660211e3e7e5990bc79a5de0458 (diff)
parent81bc7610abe68d158683877f04fc46c2a32c3b44 (diff)
downloadCMake-98622e5e72a4bb705bf88b2d442c492dad45c072.zip
CMake-98622e5e72a4bb705bf88b2d442c492dad45c072.tar.gz
CMake-98622e5e72a4bb705bf88b2d442c492dad45c072.tar.bz2
Merge topic 'make-clean-no-targets'
81bc7610ab Makefile: Fix "make clean" when there are no targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1833
Diffstat (limited to 'Source')
-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);