File: justfile

package info (click to toggle)
wordbook 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 752 kB
  • sloc: python: 1,460; xml: 9; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (2)
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
32
33
34
BUILD := "_build"

default:
  @just --choose

# Setup build folder.
setup:
	mkdir -p {{BUILD}}
	meson setup . {{BUILD}}

# Configure a local build.
local-configure:
	meson configure {{BUILD}} -Dprefix=$(pwd)/{{BUILD}}/testdir
	ninja -C {{BUILD}} install

# Configure a local build with debugging.
develop-configure:
	meson configure {{BUILD}} -Dprefix=$(pwd)/{{BUILD}}/testdir -Dprofile=development
	ninja -C {{BUILD}} install

# Run the local build.
local-run:
	ninja -C {{BUILD}} run

# Install system-wide.
install:
	ninja -C {{BUILD}} install

# Clean build files.
clean:
	rm -r {{BUILD}}

# Do everything needed and then run Wordbook for develpment in one command.
run: setup develop-configure local-run clean