imake: add setup hook

This commit is contained in:
Matthew Bauer
2018-11-28 20:14:33 -06:00
parent 801b375925
commit 613e262fc2
3 changed files with 23 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
export IMAKECPP="@tradcpp@/bin/tradcpp"
imakeConfigurePhase() {
runHook preConfigure
echoCmd 'configuring with imake'
if [ -z "${imakefile:-}" -a ! -e Imakefile ]; then
echo "no Imakefile, doing nothing"
else
xmkmf -a
fi
runHook postConfigure
}
if [ -z "$dontUseImakeConfigure" -a -z "$configurePhase" ]; then
configurePhase=imakeConfigurePhase
fi