catala/tests/Makefile

18 lines
571 B
Makefile
Raw Normal View History

2020-08-07 18:37:28 +03:00
############################################
# Preamble
############################################
CATALA_OPTS?=
2022-04-14 12:47:18 +03:00
CLERK_OPTS?=--makeflags="$(MAKEFLAGS)"
2022-01-10 20:35:41 +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-08-07 18:37:28 +03:00
# Forces all the tests to be redone
.FORCE:
%.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 `tests/` uniformly.
@cd ..; $(CLERK) tests/$@