2022-08-18 22:58:41 +02:00
|
|
|
include config.mk
|
2022-05-23 17:27:06 +02:00
|
|
|
|
2022-09-23 18:55:25 +02:00
|
|
|
Sources := $(shell find musique/ -name '*.cc')
|
|
|
|
Obj := $(subst musique/,,$(Sources:%.cc=%.o))
|
2022-04-24 16:09:55 +02:00
|
|
|
|
2022-10-14 16:43:13 +02:00
|
|
|
ifeq ($(os),windows)
|
|
|
|
all: bin/musique.exe
|
|
|
|
debug: bin/windows/debug/musique.exe
|
|
|
|
else
|
2022-05-21 23:54:21 +02:00
|
|
|
all: bin/musique
|
2022-10-14 16:43:13 +02:00
|
|
|
debug: bin/$(os)/debug/musique
|
|
|
|
endif
|
2022-04-24 15:27:09 +02:00
|
|
|
|
2022-10-14 15:56:36 +02:00
|
|
|
include scripts/$(os).mk
|
2022-10-14 16:43:13 +02:00
|
|
|
include scripts/build.mk
|
2022-08-18 22:58:41 +02:00
|
|
|
include scripts/test.mk
|
2022-04-24 16:09:55 +02:00
|
|
|
|
2022-10-14 16:43:13 +02:00
|
|
|
bin/$(Target): bin/$(os)/$(Target)
|
|
|
|
ln -f $< $@
|
|
|
|
|
2022-09-23 18:55:25 +02:00
|
|
|
doc: Doxyfile musique/*.cc musique/*.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-10-31 17:33:53 +01:00
|
|
|
doc/musique-vs-languages-cheatsheet.html: doc/musique-vs-languages-cheatsheet.template
|
|
|
|
scripts/language-cmp-cheatsheet.py $<
|
|
|
|
|
2022-11-12 01:25:16 +01:00
|
|
|
doc/wprowadzenie.html: doc/wprowadzenie.md
|
|
|
|
pandoc -o $@ $< -s --toc
|
|
|
|
|
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-10-14 15:56:36 +02:00
|
|
|
$(shell mkdir -p $(subst musique/,bin/$(os)/,$(shell find musique/* -type d)))
|
|
|
|
$(shell mkdir -p $(subst musique/,bin/$(os)/debug/,$(shell find musique/* -type d)))
|
2022-12-01 01:22:57 +01:00
|
|
|
$(shell mkdir -p bin/$(os)/serial)
|