summaryrefslogtreecommitdiffstats
path: root/crawl-ref/domake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/domake.sh')
-rwxr-xr-xcrawl-ref/domake.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/domake.sh b/crawl-ref/domake.sh
index 4ae1a8d6fe..f129f6a14e 100755
--- a/crawl-ref/domake.sh
+++ b/crawl-ref/domake.sh
@@ -1,9 +1,14 @@
-#!/bin/sh
+#!/usr/bin/env bash
#jmf: automate making normal & wizard binaries, until they merge
#jmf: N.B.: requires symlink directories; run ./dolinks.sh to make
-pushd NORMAL/source ; make ; popd
-pushd WIZARD/source ; make wizard ; popd
+MAKE=make
+if [ "$(uname -s)" == "FreeBSD" ]; then
+ MAKE=gmake
+fi
+
+pushd NORMAL/source ; $MAKE ; popd
+pushd WIZARD/source ; $MAKE wizard ; popd
if [ -f NORMAL/source/crawl ]; then
ln -sf NORMAL/source/crawl ncrawl