Browse Source

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`.
pull/320/head
Brad King 8 years ago
parent
commit
81bc7610ab
  1. 4
      Source/cmGlobalUnixMakefileGenerator3.cxx

4
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);

Loading…
Cancel
Save