2022-08-18 22:58:41 +02:00
|
|
|
include config.mk
|
2022-05-23 17:27:06 +02:00
|
|
|
|
2022-08-18 22:21:04 +02:00
|
|
|
Obj= \
|
2022-08-18 22:37:40 +02:00
|
|
|
builtin_functions.o \
|
2022-08-18 22:21:04 +02:00
|
|
|
builtin_operators.o \
|
|
|
|
context.o \
|
2022-09-23 16:42:33 +02:00
|
|
|
env.o \
|
2022-08-18 22:21:04 +02:00
|
|
|
errors.o \
|
2022-09-23 13:18:55 +02:00
|
|
|
format.o \
|
2022-08-18 22:21:04 +02:00
|
|
|
interpreter.o \
|
|
|
|
lexer.o \
|
|
|
|
lines.o \
|
|
|
|
location.o \
|
|
|
|
number.o \
|
|
|
|
parser.o \
|
|
|
|
pretty.o \
|
|
|
|
unicode.o \
|
|
|
|
unicode_tables.o \
|
2022-05-21 23:11:04 +02:00
|
|
|
value.o
|
|
|
|
|
2022-04-24 16:09:55 +02:00
|
|
|
|
2022-05-21 23:54:21 +02:00
|
|
|
all: bin/musique
|
2022-04-24 15:27:09 +02:00
|
|
|
|
2022-08-18 22:58:41 +02:00
|
|
|
include scripts/debug.mk
|
|
|
|
include scripts/release.mk
|
|
|
|
include scripts/test.mk
|
2022-04-24 16:09:55 +02:00
|
|
|
|
2022-06-11 19:57:56 +02:00
|
|
|
bin/bestline.o: lib/bestline/bestline.c lib/bestline/bestline.h
|
|
|
|
@echo "CC $@"
|
|
|
|
@$(CC) $< -c -O3 -o $@
|
|
|
|
|
2022-09-23 16:42:33 +02:00
|
|
|
doc: Doxyfile musique/*.cc include/*.hh
|
2022-05-08 18:02:23 +02:00
|
|
|
doxygen
|
2022-05-02 22:09:11 +02:00
|
|
|
|
2022-05-10 15:25:17 +02:00
|
|
|
doc-open: doc
|
|
|
|
xdg-open ./doc/build/html/index.html
|
|
|
|
|
2022-04-24 15:27:09 +02:00
|
|
|
clean:
|
2022-05-02 22:12:29 +02:00
|
|
|
rm -rf bin coverage
|
2022-04-24 15:27:09 +02:00
|
|
|
|
2022-09-18 16:34:43 +02:00
|
|
|
release: bin/musique
|
|
|
|
scripts/release
|
|
|
|
|
2022-09-18 19:15:38 +02:00
|
|
|
install: bin/musique
|
|
|
|
scripts/install
|
2022-09-18 16:34:43 +02:00
|
|
|
|
2022-09-18 19:15:38 +02:00
|
|
|
.PHONY: clean doc doc-open all test unit-tests release install
|
2022-04-24 15:27:09 +02:00
|
|
|
|
2022-05-24 03:00:51 +02:00
|
|
|
$(shell mkdir -p bin/debug/tests)
|