fix(examples): assets are now generated from the repo root

This commit is contained in:
Emile Rolley 2022-07-20 16:35:51 +02:00 committed by Emile Rolley
parent bf33cbfa49
commit 61899cd698
3 changed files with 3487 additions and 3151 deletions

View File

@ -4,7 +4,9 @@
LATEXMK?=latexmk
CATALA=../../_build/default/compiler/catala.exe \
CURR_DIR=examples/$(shell basename $(shell pwd))/
CATALA=cd ../../; _build/default/compiler/catala.exe \
$(CATALA_OPTS) --language=$(CATALA_LANG)
help : ../Makefile.common.mk
@ -24,25 +26,25 @@ help : ../Makefile.common.mk
#> <target_file>.ml : Compiles the file to OCaml
%.ml: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $<
@$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \
OCaml \
$<
$(CURR_DIR)$<
#> <target_file>.py : Compiles the file to Python
%.py: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $<
@$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \
Python \
$<
$(CURR_DIR)$<
#> <target_file>.tex : Weaves the file to LaTeX
%.tex: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $<
@$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \
--wrap \
LaTeX \
$<
$(CURR_DIR)$<
#> <target_file>.pdf : Weaves the file to PDF (via XeLaTeX)
%.pdf: %.tex
@ -50,11 +52,11 @@ help : ../Makefile.common.mk
#> <target_file>.html : Weaves the file to HTML
%.html: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $<
@$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \
--wrap \
HTML \
$<
$(CURR_DIR)$<
%.spellok: %.catala_$(CATALA_LANG) ../whitelist.$(CATALA_LANG)
aspell list --lang=$(CATALA_LANG) --mode=markdown --camel-case --add-wordlists=../whitelist.$(CATALA_LANG) <$< | tee "$<".errors

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff