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:
parent
fcddfaecbf
commit
7d0a99f4e8
1 changed files with 14 additions and 1 deletions
|
@ -1112,7 +1112,20 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
|
||||||
|
|
||||||
// Get the clean command from the build model
|
// Get the clean command from the build model
|
||||||
buffer.append("RM := "); //$NON-NLS-1$
|
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);
|
buffer.append(NEWLINE);
|
||||||
|
|
||||||
// Now add the source providers
|
// Now add the source providers
|
||||||
|
|
Loading…
Add table
Reference in a new issue