mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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`.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user