paper_hashtag_federation/Makefile

56 lines
2.6 KiB
Makefile
Raw Normal View History

.PHONY: simulation
all: expose paper Makefile
paper: paper_hashtag_federation.pdf Makefile
paper_hashtag_federation.pdf: paper_hashtag_federation.tex glossary.tex paper_hashtag_federation.bbl figures Makefile
lualatex --halt-on-error -synctex=1 paper_hashtag_federation.tex
# 2nd run necessary for resolving acronyms properly
lualatex --halt-on-error -synctex=1 paper_hashtag_federation.tex
figures: statistics_figures id_figures
statistics_figures: statistics/friendica_hashtags_total.png statistics/geraspora_hashtags_total.png statistics/twitter_hashtags_total.png statistics/geraspora_hashtags_history.png statistics/piratica_hashtags_history.png statistics/squeetme_hashtags_history.png statistics/twitter_hashtags_history.png
statistics/%.png: statistics/Makefile
make -C statistics
id_figures: figures/dht_ids_eight.png figures/dht_ids_singlevs3.png figures/hist_distance_single_vs.png figures/hist_num_single_vs.png figures/dht_ids_one.png figures/hist_distance_multi_vs.png figures/hist_num_multi_vs.png
figures/dht_%.png figures/hist_%.dat: evaluation/plot_IDs.py instance_scanner/instance_ips.csv
./evaluation/plot_IDs.py
figures/hist_distance_multi_vs.png: figures/hist_distance_multi_vs.dat figures/hist_distance.plot
gnuplot -e "infile='$<'; outfile='$@'; heading='Histogram of neighbouring node distance, 8 vservers, 256 bins';" figures/hist_distance.plot
figures/hist_distance_single_vs.png: figures/hist_distance_single_vs.dat figures/hist_distance.plot
gnuplot -e "infile='$<'; outfile='$@'; heading='Histogram of neighbouring node distance, 1 vserver, 256 bins';" figures/hist_distance.plot
figures/hist_num_single_vs.png: figures/hist_num_single_vs.dat figures/hist_num.plot
gnuplot -e "infile='$<'; outfile='$@'; heading='Histogram of node ID distribution, 1 vserver, 256 bins';" figures/hist_num.plot
figures/hist_num_multi_vs.png: figures/hist_num_multi_vs.dat figures/hist_num.plot
gnuplot -e "infile='$<'; outfile='$@'; heading='Histogram of node ID distribution, 8 vservers, 256 bins';" figures/hist_num.plot
paper_hashtag_federation.bbl: *.tex literature.bib
lualatex paper_hashtag_federation.tex
biber paper_hashtag_federation.bcf
expose: expose.html expose.pdf Makefile
expose.html: expose.md
pandoc -s -t html5 -o expose.html expose.md
expose.pdf: expose.md
pandoc -t latex -s --variable classoption="twocolumn" --variable classoption="a4paper" -o expose.pdf expose.md
simulation:
if [ -e ./loadbal.txt ]; then\
echo "Simulation results are stored in './loadbal.txt'. To regenereate them, please delete that file.";\
fi;\
make loadbal.txt
loadbal.txt:
./evaluation/load_eval.py |tee loadbal.log