catala/examples/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
705 B
Makefile
Raw Normal View History

CATALA_OPTS?=
2022-04-14 12:47:18 +03:00
CLERK_OPTS?=--makeflags="$(MAKEFLAGS)"
2022-01-11 12:42:12 +03:00
CLERK=_build/default/build_system/clerk.exe --exe "_build/default/compiler/catala.exe" \
$(CLERK_OPTS) $(if $(CATALA_OPTS),--catala-opts=$(CATALA_OPTS),) test
2020-12-21 18:15:42 +03:00
################################
# Running legislation unit tests
################################
2022-08-30 14:48:20 +03:00
pass_all_tests:
@cd ..; $(CLERK) examples
2022-08-30 14:48:20 +03:00
reset_all_tests: CLERK_OPTS+=--reset
reset_all_tests:
@cd ..; $(CLERK) examples
2022-01-11 12:42:12 +03:00
%.catala_en %.catala_fr %.catala_pl: .FORCE
# Here we cd to the root of the Catala repository such that the paths \
# displayed in error messages start with `examples/` uniformly.
@cd ..; $(CLERK) examples/$@
2021-01-11 17:19:05 +03:00
.FORCE:
2022-08-30 14:48:20 +03:00
.PHONY: pass_all_tests reset_all_tests