forked from Orphis/boost-cmake
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGNUmakefile
More file actions
36 lines (24 loc) · 680 Bytes
/
GNUmakefile
File metadata and controls
36 lines (24 loc) · 680 Bytes
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
# Standard stuff
.SUFFIXES:
MAKEFLAGS+= --no-builtin-rules
MAKEFLAGS+= --warn-undefined-variables
.PHONY: all fresh configure build test install format clean distclean
fresh:
cmake --workflow --preset Release --fresh
all: test
configure:
cmake --preset Release
build: configure
cmake --build --preset Release
test: install
ctest --preset Release
install: build
cmake --build --preset Release --target install
clean:
-cmake --build --preset Release --target clean
distclean: clean
rm -rf build stagedir
format:
git ls-files ::*.cmake ::*CMakeLists.txt | xargs gersemi -i
git ls-files ::*.json ::*.cpp ::*.hpp | xargs clang-format -i
# git clang-format master