3 # Start LibreOffice Calc in server-mode
5 export PYSCRIPT_LOG_STDOUT=1
6 export PYSCRIPT_LOG_LEVEL=DEBUG
7 localc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" $*.ods
9 # Put a macro into an Open Document Spreadsheet
10 %.ods/pack_macro: %.py
11 $(python) pack_macro.py $*.py $*.ods
13 # Generate ballots for a Majority Judgment
15 $(python) -c "import jugements; jugements.MakeBallots()"
16 pdfnup --a4paper --nup 2x2 --outfile bulletins.pdf bulletins/*.pdf
18 # Generate results of a Majority Judgment
20 $(python) -c "import jugements; jugements.MakeResults()"
23 sécu-sauvage.pdf: présentation.pdf résultats.pdf
24 pdfjoin --outfile $@ --paper a4paper --rotateoversize false $^
27 %-prototype.pdf: %.pdf
28 pdftk $*.pdf background prototype.pdf output $*-prototype.pdf