       licenses: ["Apache-2.0"],
       links: %{"GitHub" => "https://github.com/nerves-project/nerves_uart"}
     ]
-  end
-
-  defp run_make?() do
-    case :os.type() do
-      {:win32, _} ->
-        # If mingw32-make isn't installed, then try prebuilt version
-        location = System.find_executable(make_executable())
-        location != nil
-
-      _ ->
-        # Non-windows platforms should have make and gcc if they
-        # have Elixir.
-        true
-    end
   end
 
   defp make_executable() do

      docs: [extras: ["README.md"]],
      build_embedded: Mix.env() == :prod,
      start_permanent: Mix.env() == :prod,
      deps: deps()
    ] ++ make_or_prebuilt()
  end

  # If the platform doesn't have make installed, try to
  # use a prebuilt version of the port binary
  defp make_or_prebuilt() do
    if run_make?() do
      [
        compilers: [:elixir_make] ++ Mix.compilers(),
        make_executable: make_executable(),
        make_makefile: "Makefile",
        make_error_message: make_error_message(),
        make_clean: ["clean"]
      ]
    else
      [aliases: [compile: ["compile", &copy_prebuilt/1]]]
    end
  end

  def application() do
    [applications: [:logger]]
  end

  defp deps() do

    end
  end

end
