-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 1.33 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
include config.mk
Sources := $(shell find musique/ -name '*.cc')
Obj := $(subst musique/,,$(Sources:%.cc=%.o))
include scripts/$(os).mk
include scripts/build.mk
all: $(PREFIX)/$(Target)
full: doc/musique-vs-languages-cheatsheet.html doc/wprowadzenie.html doc/functions.html
make all os=$(os)
make all os=$(os) mode=debug
make all os=$(os) mode=unit-test
bin/$(Target): bin/$(os)/$(Target)
ln -f $< $@
doc: Doxyfile musique/*.cc musique/*.hh
doxygen
doc-open: doc
xdg-open ./doc/build/html/index.html
clean:
rm -rf bin coverage
install: bin/musique
scripts/install
doc/musique-vs-languages-cheatsheet.html: doc/musique-vs-languages-cheatsheet.template
scripts/language-cmp-cheatsheet.py $<
doc/wprowadzenie.html: doc/wprowadzenie.md
pandoc -o $@ $< -s --toc
doc/functions.html: musique/interpreter/builtin_functions.cc scripts/document-builtin.py
scripts/document-builtin.py -o $@ -f html $<
musique.zip:
docker build -t musique-builder --build-arg "VERSION=$(VERSION)" .
docker create --name musique musique-builder
docker cp musique:/musique.zip musique.zip
docker rm -f musique
test:
make mode=debug
python3 scripts/test.py
.PHONY: clean doc doc-open all test unit-tests release install musique.zip full release
$(shell mkdir -p bin/$(os)/replxx/)
$(shell mkdir -p $(subst musique/,$(PREFIX)/,$(shell find musique/* -type d)))