     targets = []
 
 
-    statement.main_inputs =
-      MistGlobber.doAllGlobs statement.main_inputs, @mistDir
-    # TODO error on no inputs
+    if statement.main_inputs.length
+      statement.main_inputs =
+        MistGlobber.doAllGlobs statement.main_inputs, @mistDir
+      # TODO error on no inputs (but only if globs were supplied)
 
     if statement.foreach
       for inp in statement.main_inputs

        lines.pushScoped "#{k}=#{v}"

    lines.push '' # Ninja requires a newline at the end :)
    lines.join '\n'

MistNinjaBuilder.hashCommand = (command)->

      target.rule = commandHash

      build_vars = @compileDict target.main_inputs
      console.log "\x1b[31m", build_vars, "\x1b[0m"

      target.dep_inputs =
        @delimitAll target.dep_inputs, build_vars
