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 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) $(CATALA_OPTS) --language=$(CATALA_LANG)
help : ../Makefile.common.mk help : ../Makefile.common.mk
@ -24,25 +26,25 @@ help : ../Makefile.common.mk
#> <target_file>.ml : Compiles the file to OCaml #> <target_file>.ml : Compiles the file to OCaml
%.ml: %.catala_$(CATALA_LANG) %.ml: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $< @$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \ $(CATALA) \
OCaml \ OCaml \
$< $(CURR_DIR)$<
#> <target_file>.py : Compiles the file to Python #> <target_file>.py : Compiles the file to Python
%.py: %.catala_$(CATALA_LANG) %.py: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $< @$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \ $(CATALA) \
Python \ Python \
$< $(CURR_DIR)$<
#> <target_file>.tex : Weaves the file to LaTeX #> <target_file>.tex : Weaves the file to LaTeX
%.tex: %.catala_$(CATALA_LANG) %.tex: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $< @$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \ $(CATALA) \
--wrap \ --wrap \
LaTeX \ LaTeX \
$< $(CURR_DIR)$<
#> <target_file>.pdf : Weaves the file to PDF (via XeLaTeX) #> <target_file>.pdf : Weaves the file to PDF (via XeLaTeX)
%.pdf: %.tex %.pdf: %.tex
@ -50,11 +52,11 @@ help : ../Makefile.common.mk
#> <target_file>.html : Weaves the file to HTML #> <target_file>.html : Weaves the file to HTML
%.html: %.catala_$(CATALA_LANG) %.html: %.catala_$(CATALA_LANG)
@$(CATALA) Makefile $< @$(CATALA) Makefile $(CURR_DIR)$<
$(CATALA) \ $(CATALA) \
--wrap \ --wrap \
HTML \ HTML \
$< $(CURR_DIR)$<
%.spellok: %.catala_$(CATALA_LANG) ../whitelist.$(CATALA_LANG) %.spellok: %.catala_$(CATALA_LANG) ../whitelist.$(CATALA_LANG)
aspell list --lang=$(CATALA_LANG) --mode=markdown --camel-case --add-wordlists=../whitelist.$(CATALA_LANG) <$< | tee "$<".errors 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