From 03396d731f5938ead91d3f361cfbb77f24840a45 Mon Sep 17 00:00:00 2001 From: Ryan Sundberg Date: Sat, 9 May 2020 20:32:31 +0000 Subject: [PATCH] Use rebar "pc" plugin for portable compilation Fixes builds from source on OmniOS / systems with non-GNU make --- rebar.config | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/rebar.config b/rebar.config index 7b55b31..a2b47d0 100644 --- a/rebar.config +++ b/rebar.config @@ -26,9 +26,15 @@ ]}]}, {test, [{deps, [{fqc, {git, "https://github.com/project-fifo/fqc.git", {branch, "master"}}}]}]}]}. -{pre_hooks, - [{"(linux|darwin|solaris)", compile, "make -C c_src"}, - {"(freebsd)", compile, "gmake -C c_src"}]}. -{post_hooks, - [{"(linux|darwin|solaris)", clean, "make -C c_src clean"}, - {"(freebsd)", clean, "gmake -C c_src clean"}]}. +{plugins, [pc]}. + +{provider_hooks, + [ + {pre, + [ + {compile, {pc, compile}}, + {clean, {pc, clean}} + ] + } + ] +}.