diff options
author | Brad King <brad.king@kitware.com> | 2018-03-08 14:01:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-08 14:01:53 (GMT) |
commit | 81bc7610abe68d158683877f04fc46c2a32c3b44 (patch) | |
tree | f7cf07e5209ff58453bf627bd2160f5d59db7a43 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 9ceafdfd4deec57c3a7f8650b2466da1d0aa0d3f (diff) | |
download | CMake-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.cxx | 4 |
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); |