add optable into ls012.mdwn
[libreriscv.git] / openpower / sv / rfc / Makefile
1 .PHONY: all clean upload
2
3 .SECONDARY:
4
5 main_sources = $(wildcard ls[0-9][0-9][0-9].mdwn)
6 pdfs = $(patsubst %.mdwn,%.pdf,$(main_sources))
7 deps = $(patsubst %,tex_out/%.d,$(main_sources))
8
9 all: ls012_optable $(pdfs)
10
11 ls012_optable:
12 python3 ls012_optable.py
13
14 # generate dependency files, also generates intermediate .mdwn files too
15 tex_out/%.mdwn.d: %.mdwn ../../mdwn_inline.py
16 mkdir -p $(dir $@)
17 ../../mdwn_inline.py $< tex_out/$*.mdwn
18
19 %.pdf: tex_out/%.mdwn ../../pandoc_img.py
20 pandoc \
21 --filter ../../pandoc_img.py \
22 -V margin-top=0.9in \
23 -V margin-bottom=0.9in \
24 -V margin-left=0.4in \
25 -V margin-right=0.4in \
26 -V fontsize=9pt \
27 -V papersize=legal \
28 -V linkcolor=blue \
29 -f markdown $< \
30 -s --self-contained \
31 --mathjax \
32 -o $@
33
34 upload:
35 rsync -HPavz *.pdf libre-soc.org:opf_isa_wg/
36 ssh libre-soc.org 'cp opf_isa_wg/*.pdf /var/www/ftp.libre-riscv.org/opf_ext_rfc/'
37
38 clean:
39 rm -fr *.pdf tex_out
40
41 -include $(deps)