-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (42 loc) · 1.2 KB
/
Makefile
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
54
55
56
57
58
59
60
SHELL:=/bin/bash
.PHONY: venv
venv:
ifeq ($(VIRTUAL_ENV), )
$(error "Not running in a virtualenv")
endif
.PHONY: install
install: ## Install
@pip install .
.PHONY: dev-install
dev-install: venv ## Install dependencies
@pip install . .[dev]
.PHONY: test
test: ## Test hello world example
@PYTHONPATH=. python -m sylva.cli \
hello \
--stdlib=./std \
--cpp=/usr/bin/clang \
--libclang=/Library/Developer/CommandLineTools/usr/lib/libclang.dylib \
--output-folder sbuild
.PHONY: parsetest
parsetest: ## Run parser tests
@PYTHONPATH=. python -m sylva.cli \
hello \
--stdlib=./std \
--cpp=/usr/bin/clang \
--libclang=/Library/Developer/CommandLineTools/usr/lib/libclang.dylib \
--output-folder sbuild \
--only-parse
.PHONY: utest
utest: dev-install ## Run unit tests
@echo "No unit testing framework set up yet"
.PHONY: docs
docs: ## Build documentation
@dox doc
.PHONY: parser
parser: ## Build parser
@cd lark && make clean && make install
.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage: make [command] \n\nCommands: \n\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-15s %s\n", $$1, $$2 } /^##@/ { printf "\n%s\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
@echo