Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support DUNE_FLAGS #643

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
dune = @dune $(1) $(DUNE_FLAGS)

all:
@dune build
$(call dune,build)
.PHONY: all

build-core:
@dune build theories
$(call dune,build) theories
.PHONY: build-core

build-apps:
@dune build $$(find apps -type d -name theories)
$(call dune,build) $$(find apps -type d -name theories)
.PHONY: build-apps

build:
@dune build @install
$(call dune,build) @install
.PHONY: build

test-core:
@dune runtest tests
$(call dune,runtest) tests
.PHONY: test-core

test-apps:
@dune build $$(find apps -type d -name tests)
$(call dune,build) $$(find apps -type d -name tests)
.PHONY: test-apps

test:
@dune runtest
@dune build $$(find apps -type d -name tests)
$(call dune,runtest)
$(call dune,build) $$(find apps -type d -name tests)
.PHONY: test

examples:
@dune build examples
$(call dune,build) examples
.PHONY: examples

doc: build
Expand All @@ -45,12 +47,12 @@ doc: build
@cp etc/tracer.png doc/

clean:
@dune clean
$(call dune,clean)
.PHONY: clean

install:
@dune build -p coq-elpi
@dune install coq-elpi
$(call dune,build) -p coq-elpi
$(call dune,install) coq-elpi
.PHONY: install

nix:
Expand Down
Loading