Skip to content
Snippets Groups Projects
Commit 381d052e authored by Yiyun Liu's avatar Yiyun Liu
Browse files

Use gmake for BSD systems

parent b4310406
No related branches found
No related tags found
No related merge requests found
Pipeline #104408 passed
#!/bin/bash
#!/bin/sh
set -e
# Helper script to build and/or install just one package out of this repository.
# Assumes that all the other packages it depends on have been installed already!
OS=$(uname)
MAKE="make"
if [ $OS == "FreeBSD" ] || [ $OS == "OpenBSD" ] ||\
[ $OS == "NetBSD" ] || [ $OS == "DragonFly" ]; then
MAKE="gmake"
fi
PROJECT="$1"
shift
......@@ -26,7 +33,7 @@ grep -E "^$PROJECT/" _CoqProject >> "$COQFILE"
"${COQBIN}coq_makefile" -f "$COQFILE" -o "$MAKEFILE"
# Run build
make -f "$MAKEFILE" "$@"
$MAKE -f "$MAKEFILE" "$@"
# Cleanup
rm -f ".$MAKEFILE.d" "$MAKEFILE"*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment