2021-03-04 19:11:26 +00:00
|
|
|
SUFFICES := .pdf -wordpress.html
|
2022-02-07 21:27:42 +00:00
|
|
|
CHAPTERS := 00_the_name_of_the_game 01_the_route_and_its_attributes 02_asynchronous_export 03_coroutines 03b_performance
|
2021-03-04 19:11:26 +00:00
|
|
|
|
|
|
|
all: $(foreach ch,$(CHAPTERS),$(addprefix $(ch),$(SUFFICES)))
|
|
|
|
|
|
|
|
00_the_name_of_the_game.pdf: 00_filter_structure.png
|
|
|
|
|
|
|
|
%.pdf: %.md
|
|
|
|
pandoc -f markdown -t latex -o $@ $<
|
|
|
|
|
|
|
|
%.html: %.md
|
|
|
|
pandoc -f markdown -t html5 -o $@ $<
|
|
|
|
|
|
|
|
%-wordpress.html: %.html Makefile
|
|
|
|
sed -r 's#</p>#\n#g; s#<p>##g; s#<(/?)code>#<\1tt>#g; s#<pre><tt>#<code>#g; s#</tt></pre>#</code>#g; s#</?figure>##g; s#<figcaption>#<p style="text-align: center">#; s#</figcaption>#</p>#; ' $< > $@
|
2021-12-09 20:53:00 +00:00
|
|
|
|
|
|
|
stats-%.csv: stats.csv stats-filter.pl
|
|
|
|
perl stats-filter.pl $< $* > $@
|
|
|
|
|
|
|
|
STATS_VARIANTS := multi imex mulimex single
|
|
|
|
stats-all: $(patsubst %,stats-%.csv,$(STATS_VARIANTS))
|
|
|
|
|
|
|
|
stats-2d-%.pdf: stats.csv stats-filter-2d.pl
|
|
|
|
perl stats-filter-2d.pl $< $* $@
|
|
|
|
|
|
|
|
stats-2d-%.png: stats-2d-%.pdf
|
|
|
|
gs -dBATCH -dNOPAUSE -sDEVICE=pngalpha -sOutputFile=$@ -r300 $<
|
|
|
|
|
|
|
|
stats-all-2d: $(foreach suf,pdf png,$(patsubst %,stats-2d-%.$(suf),$(STATS_VARIANTS)))
|