Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2007-05-25 04:16:17 +0000
committerDoug Schaefer2007-05-25 04:16:17 +0000
commitf6de79153337cbeaad3687acbafa9bf6b4c74490 (patch)
tree789cd91aa51d48145e476fd245e35c17a7a98559 /build/org.eclipse.cdt.managedbuilder.gnu.ui/src
parent4585e4c2a8550e1847d898c79bdb3998212d9256 (diff)
downloadorg.eclipse.cdt-f6de79153337cbeaad3687acbafa9bf6b4c74490.tar.gz
org.eclipse.cdt-f6de79153337cbeaad3687acbafa9bf6b4c74490.tar.xz
org.eclipse.cdt-f6de79153337cbeaad3687acbafa9bf6b4c74490.zip
Some fixes to get the HelloWorld Makefile project template working on Linux.
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui/src')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
index d52c72855e8..9150103c091 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
@@ -73,8 +73,7 @@ public class SimpleMakefileGenerator extends ProcessRunner {
}
Map macros = new HashMap(template.getValueStore());
- if (Platform.getOS().equals(Platform.OS_WIN32))
- macros.put("exe", ".exe");
+ macros.put("exe", Platform.getOS().equals(Platform.OS_WIN32) ? ".exe" : ""); //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
fileContents = replaceMacros(fileContents, macros);
contents = new ByteArrayInputStream(fileContents.getBytes());

Back to the top