Files
SERiF/mk

24 lines
450 B
Bash
Executable File

#!/bin/bash
# Check for the --noTest flag
if [[ "$1" == "--noTest" ]]; then
meson setup build -Dbuild_tests=false
else
meson setup build -Dbuild_tests=true
fi
# Compile the project
meson compile -C build
# If tests are built, run them
if [[ "$1" != "--noTest" ]]; then
meson test -C build
fi
# Check if --docs are to be built
if [[ "$*" == *"--docs"* ]]; then
echo "Generating documentation..."
doxygen
cd docs/latex && make
fi