-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjustfile
31 lines (25 loc) · 890 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# For documentation on `just`, see https://github.com/casey/just
# and the online manual https://just.systems/man/en/
# This set of recipes have only been tested on macOS.
set shell := ["bash", "-uc"]
# Self-help
[private] # Don't print `default` as one of the recipes
default:
@just --list --justfile {{justfile()}} --list-heading $'Usage: `just recipe` where `recipe` is one of:\n'
# Make `build/` if it does not exist
mkdir:
#!/usr/bin/env bash
set -euxo pipefail
if [ ! -d build ]; then
mkdir build
fi
# Generate the cmake project (Tracy disabled)
gen: mkdir
cd build && cmake .. -GXcode -DTRACY_ENABLE=OFF
# Erase and rebuild `build/` folder
[confirm("Are you sure you want to delete `build/`? (y/N)")]
nuke: && mkdir gen
rm -rf build/
# Generate the cmake project (Tracy enabled)
tracy: mkdir
cd build && cmake .. -GXcode -DTRACY_ENABLE=ON