make biginteger pdfs too
[libreriscv.git] / openpower / sv / biginteger / Makefile
1 SHELL=/bin/bash
2
3 .PHONY: all clean upload
4
5 .SECONDARY:
6
7 main_sources = $(wildcard *.mdwn)
8 pdfs = $(patsubst %.mdwn,%.pdf,$(main_sources))
9 deps = $(patsubst %,tex_out/%.d,$(main_sources))
10
11 all: $(pdfs)
12
13 tex_out/%.mdwn.d: %.mdwn ../../mdwn_inline.py
14 @mkdir -p $(dir $@)
15 @../../mdwn_inline.py --deps $< tex_out/$*.mdwn
16
17 tex_out/%.mdwn: %.mdwn ../../mdwn_inline.py
18 mkdir -p $(dir $@)
19 ../../mdwn_inline.py $< tex_out/$*.mdwn
20
21 %.pdf: tex_out/%.mdwn ../../pandoc_img.py
22 pandoc \
23 --filter ../../pandoc_img.py \
24 -V margin-top=0.9in \
25 -V margin-bottom=0.9in \
26 -V margin-left=0.4in \
27 -V margin-right=0.4in \
28 -V fontsize=9pt \
29 -V papersize=legal \
30 -V linkcolor=blue \
31 -f markdown $< \
32 -s --self-contained \
33 --mathjax \
34 -o $@
35
36 upload: all
37 sftp sftp://ftp@ftp.libre-soc.org:922 <<<$$'cd biginteger\nprogress\nput *.pdf'
38
39 clean:
40 rm -fr *.pdf tex_out
41
42 -include $(deps)