-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (22 loc) · 754 Bytes
/
makefile
File metadata and controls
30 lines (22 loc) · 754 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
# Default to using all available CPU cores for parallel builds
# unless the user specifies a different number of jobs with -jN
ifeq ($(filter -j%,$(MAKEFLAGS)),)
MAKEFLAGS += -j$(shell nproc)
endif
all: bin/bpp bin/bpp-lsp std
@:
include mk/build.mk
include mk/stdlib.mk
include mk/docs.mk
test:
bin/bpp test-suite/run.bpp
vscode:
@cd vscode && $(MAKE) --no-print-directory
clean-vscode:
@cd vscode && $(MAKE) --no-print-directory clean
@echo "Cleaned up VSCode extension files."
clean: clean-flexbison clean-lsp clean-meta clean-objects clean-bin clean-std clean-manual clean-technical-docs clean-vscode
.PHONY: all test vscode clean-vscode
ifeq ($(filter clean%,$(MAKECMDGOALS)),)
-include $(shell find bin -name '*.d' 2>/dev/null)
endif