mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
fix(examples): assets are now generated from the repo root
This commit is contained in:
parent
bf33cbfa49
commit
61899cd698
@ -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
|
||||||
|
5890
french_law/js/french_law.js
generated
5890
french_law/js/french_law.js
generated
File diff suppressed because one or more lines are too long
728
french_law/ocaml/law_source/allocations_familiales.ml
generated
728
french_law/ocaml/law_source/allocations_familiales.ml
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user