mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-12-22 20:33:36 +01:00
34 lines
498 B
Makefile
34 lines
498 B
Makefile
# Frontend to dune.
|
|
|
|
DIRS=$(shell ls */README.org | sed "s|/README.org||g")
|
|
DOCS=$(patsubst %, docs/%.html, $(DIRS))
|
|
|
|
.PHONY: default build install uninstall test clean
|
|
|
|
default: build
|
|
|
|
|
|
docs/%.html: %/README.org
|
|
- ./bin/tangle.sh $*
|
|
- ./bin/build_doc.sh $*
|
|
|
|
doc: $(DOCS)
|
|
|
|
build: doc
|
|
dune build
|
|
|
|
test:
|
|
dune runtest -f
|
|
|
|
install:
|
|
dune install
|
|
|
|
uninstall:
|
|
dune uninstall
|
|
|
|
clean:
|
|
dune clean
|
|
# Optionally, remove all files/folders ignored by git as defined
|
|
# in .gitignore (-X).
|
|
git clean -dfXq
|