1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

crecoskie Nov 25, 2005

- support macros in the clean command
This commit is contained in:
Chris Recoskie 2005-11-25 19:30:19 +00:00
parent fcddfaecbf
commit 7d0a99f4e8

View file

@ -1112,7 +1112,20 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
// Get the clean command from the build model
buffer.append("RM := "); //$NON-NLS-1$
buffer.append(info.getCleanCommand() + NEWLINE);
// support macros in the clean command
String cleanCommand = info.getCleanCommand();
try {
cleanCommand = ManagedBuildManager.getBuildMacroProvider()
.resolveValueToMakefileFormat(info.getCleanCommand(),
EMPTY_STRING, WHITESPACE,
IBuildMacroProvider.CONTEXT_CONFIGURATION, config);
} catch (BuildMacroException e) {
}
buffer.append(cleanCommand + NEWLINE);
buffer.append(NEWLINE);
// Now add the source providers