-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 1.25 KB
/
Copy pathMakefile
File metadata and controls
52 lines (42 loc) · 1.25 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ObjectTalk Scripting Language
# Copyright (c) 1993-2026 Johan A. Goossens. All rights reserved.
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#
# NOTE:
#
# This makefile only works for the main developer of this package
# as it uses a very specify location for the build directory.
#
# Builds should be performed using Cmake and the instructions are
# in the documentation.
#
.PHONY: debug
debug: ninja
cmake --build $(HOME)/build/ObjectTalk --config Debug
.PHONY: release
release: ninja
cmake --build $(HOME)/build/ObjectTalk --config Release
.PHONY: ninja
ninja:
cmake -B $(HOME)/build/ObjectTalk -G "Ninja Multi-Config"
.PHONY: xcode
xcode:
cmake -B $(HOME)/build/ObjectTalk/xcode -G Xcode
# .PHONY: vs
# vs:
# cmake -B ${HOME}/build/ObjectTalk/vs -G "Visual Studio 18 2026" -A ARM64
# cmake --build ${HOME}/build/ObjectTalk/vs
.PHONY: test
test: debug
ctest --test-dir $(HOME)/build/ObjectTalk --build-config Debug --output-on-failure
.PHONY: rtest
rtest: release
ctest --test-dir $(HOME)/build/ObjectTalk --build-config Release --output-on-failure
.PHONY: docs
docs:
pugger --recursive --theme manual --assets --out docs docs-src
.PHONY: clean
clean:
rm -rf $(HOME)/build/ObjectTalk