mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-11-14 01:53:39 +01:00
40 lines
641 B
Makefile
40 lines
641 B
Makefile
# Frontend to dune.
|
|
|
|
# No implicit rules
|
|
MAKEFLAGS += --no-builtin-rules
|
|
.SUFFIXES:
|
|
|
|
DIRS=$(shell ls */README.org | sed "s|/README.org||g")
|
|
DOCS=$(patsubst %, docs/%.html, $(DIRS))
|
|
|
|
.PHONY: default build install uninstall test clean doc
|
|
|
|
default: build
|
|
|
|
|
|
docs/%.html: %/README.org %/lib/*.ml %/lib/*.mli %/test/*.ml
|
|
- echo $^
|
|
- ./bin/tangle.sh $*
|
|
- ./bin/build_doc.sh $*
|
|
- ./bin/build_doc.sh docs
|
|
|
|
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
|