From 65706775881f31e28f14d25f6c4464e88f1a8b32 Mon Sep 17 00:00:00 2001 From: Alexei Sholik Date: Thu, 16 May 2013 15:44:12 +0300 Subject: [PATCH] Print some hints if sundown build fails. Related: #31 --- mix.exs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mix.exs b/mix.exs index 9d5017bc2..09c38d3ca 100644 --- a/mix.exs +++ b/mix.exs @@ -3,6 +3,15 @@ defmodule Mix.Tasks.Compile.Sundown do def run(_) do Mix.shell.info System.cmd("make share/markdown.so") + + if not File.regular?("sundown/sundown") do + IO.puts """ + If the build did not work for you, try removing the -Wl compilation flag in + sundown/Makefile and run `mix compile` again. + + See also https://github.com/elixir-lang/ex_doc/issues/31 + """ + end end end