]> Git — Sourcephile - reloto-libreoffice.git/blob - Makefile
Ajout d'un avertissement que l'algo du rang majoritaire utilisé ici est totalement...
[reloto-libreoffice.git] / Makefile
1 python:=python3
2
3 # Start LibreOffice Calc in server-mode
4 %.ods/localc:
5 export PYSCRIPT_LOG_STDOUT=1
6 export PYSCRIPT_LOG_LEVEL=DEBUG
7 localc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" $*.ods
8
9 # Put a macro into an Open Document Spreadsheet
10 %.ods/pack_macro: %.py
11 $(python) pack_macro.py $*.py $*.ods
12
13 # Generate ballots for a Majority Judgment
14 ballots:
15 $(python) -c "import jugements; jugements.MakeBallots()"
16 pdfnup --a4paper --nup 2x2 --outfile bulletins.pdf bulletins/*.pdf
17
18 # Generate results of a Majority Judgment
19 results:
20 $(python) -c "import jugements; jugements.MakeResults()"
21
22 # Join PDFs
23 sécu-sauvage.pdf: présentation.pdf résultats.pdf
24 pdfjoin --outfile $@ --paper a4paper --rotateoversize false $^
25
26 # Watermark PDF
27 %-prototype.pdf: %.pdf
28 pdftk $*.pdf background prototype.pdf output $*-prototype.pdf