forked from sourcemeta/jsonbinpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (47 loc) · 1.23 KB
/
Makefile
File metadata and controls
53 lines (47 loc) · 1.23 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
53
include vendor/vendorpull/targets.mk
.DEFAULT_GOAL = all
CMAKE ?= cmake
CTEST ?= ctest
BUNDLE ?= bundle
PRESET ?= debug
.PHONY: all
all:
$(CMAKE) --preset $(PRESET) --log-context
$(CMAKE) --build --preset $(PRESET) --target clang_format
$(CMAKE) --build --preset $(PRESET)
$(CTEST) --preset $(PRESET)
.PHONY: test
CASE ?=
ifdef CASE
test:
$(CMAKE) --preset $(PRESET) --log-context
$(CMAKE) --build --preset $(PRESET) --target clang_format
$(CMAKE) --build --preset $(PRESET)
$(CTEST) --preset $(PRESET) --verbose --tests-regex $(CASE)
else
test:
$(CMAKE) --preset $(PRESET) --log-context
$(CMAKE) --build --preset $(PRESET) --target clang_format
$(CMAKE) --build --preset $(PRESET)
$(CTEST) --preset $(PRESET) --verbose
endif
.PHONY: debug
ifdef CASE
debug: scripts/lldb.sh
$(CMAKE) --preset $(PRESET) --log-context
$(CMAKE) --build --preset $(PRESET)
./$< $(PRESET) $(CASE)
else
debug:
@echo "Missing CASE option" 1>&2
exit 1
endif
.PHONY: clean
clean:
$(CMAKE) -E rm -R -f build .bundle .sass-cache
.PHONY: jekyll
jekyll:
$(CMAKE) --preset $(PRESET) --log-context
$(CMAKE) --build --preset $(PRESET) --target bundler
$(BUNDLE) exec jekyll serve --watch --incremental --trace \
--source www --destination build/$(PRESET)/www