     end
   end
 
-  defp copy_prebuilt(_) do
-    case :os.type() do
-      {:win32, _} ->
-        Mix.shell().info("Copying prebuilt port binary")
-        File.cp("prebuilt/nerves_uart.exe", "priv/nerves_uart.exe")
-
-      _ ->
-        Mix.raise("Couldn't find 'make' and no prebuilt port binary to use.")
-    end
-  end
 end

      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(),
        compilers: [:elixir_make] ++ Mix.compilers(),
        make_executable: make_executable(),
        make_makefile: "Makefile",
        make_error_message: make_error_message(),
        make_clean: ["clean"]
    ]
  end

  def application() do
    []
  end

  defp deps() do
