Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'autotools/org.eclipse.linuxtools.cdt.autotools.ui/src/org/eclipse/linuxtools/internal/cdt/autotools/ui/editors/automake/NullMakefile.java')
-rw-r--r--autotools/org.eclipse.linuxtools.cdt.autotools.ui/src/org/eclipse/linuxtools/internal/cdt/autotools/ui/editors/automake/NullMakefile.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/autotools/org.eclipse.linuxtools.cdt.autotools.ui/src/org/eclipse/linuxtools/internal/cdt/autotools/ui/editors/automake/NullMakefile.java b/autotools/org.eclipse.linuxtools.cdt.autotools.ui/src/org/eclipse/linuxtools/internal/cdt/autotools/ui/editors/automake/NullMakefile.java
new file mode 100644
index 0000000000..f36a115360
--- /dev/null
+++ b/autotools/org.eclipse.linuxtools.cdt.autotools.ui/src/org/eclipse/linuxtools/internal/cdt/autotools/ui/editors/automake/NullMakefile.java
@@ -0,0 +1,67 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.linuxtools.internal.cdt.autotools.ui.editors.automake;
+
+import java.io.IOException;
+import java.io.Reader;
+import java.net.URI;
+
+/**
+ * Makefile : ( statement ) *
+ * statement : rule | macro_definition | comments | empty
+ * rule : inference_rule | target_rule
+ * inference_rule : target ':' <nl> ( <tab> command <nl> ) +
+ * target_rule : target [ ( target ) * ] ':' [ ( prerequisite ) * ] [ ';' command ] <nl>
+ [ ( command ) * ]
+ * macro_definition : string '=' (string)*
+ * comments : ('#' (string) <nl>) *
+ * empty : <nl>
+ * command : <tab> prefix_command string <nl>
+ * target : string
+ * prefix_command : '-' | '@' | '+'
+ * internal_macro : "$<" | "$*" | "$@" | "$?" | "$%"
+ */
+
+public class NullMakefile extends AbstractMakefile {
+
+ public final static IDirective[] EMPTY_DIRECTIVES = new IDirective[0];
+
+ public NullMakefile() {
+ super(null);
+ }
+
+ public IDirective[] getDirectives() {
+ return EMPTY_DIRECTIVES;
+ }
+
+ public IDirective[] getBuiltins() {
+ return EMPTY_DIRECTIVES;
+ }
+
+ public void addDirective(IDirective directive) {
+ }
+
+ public String toString() {
+ return new String();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.make.core.makefile.IMakefile#parse(java.io.Reader)
+ */
+ public void parse(String name, Reader makefile) throws IOException {
+ }
+
+ public void parse(URI fileURI, Reader reader) throws IOException {
+ }
+
+ protected void parse(URI fileURI, MakefileReader reader) throws IOException {
+ }
+}

Back to the top