3 RST2PDFFLAGS := --compressed --smart-quotes=1
6 RST2HTMLFLAGS := --section-subtitles
8 # Transform reST documents to PDF
9 $(VD)/%.pdf: $T/%.rst $G/rst2pdf-flags
10 $(call exec,$(RST2PDF) $(RST2PDFFLAGS) -o $@ $<)
12 # Transform reST documents to HTML
13 $(VD)/%.html: $T/%.rst $G/rst2html-flags
14 $(call exec,$(RST2HTML) $(RST2HTMLFLAGS) $< $@)
17 $(VD)/resume-en.pdf: RST2PDFFLAGS += -l en_US
18 $(VD)/resume-en.html: RST2HTMLFLAGS += -l en
19 $(VD)/resume-es.pdf: RST2PDFFLAGS += -l es_AR
20 $(VD)/resume-es.html: RST2HTMLFLAGS += -l es
23 en: $(VD)/resume-en.pdf $(VD)/resume-en.html
26 es: $(VD)/resume-es.pdf $(VD)/resume-es.html
29 pdf: $(VD)/resume-en.pdf $(VD)/resume-es.pdf
32 html: $(VD)/resume-en.html $(VD)/resume-es.html
36 # Create files containing the current flags to trigger a rebuild if they change
37 setup_flag_files__ := $(call gen_rebuild_flags,$G/rst2pdf-flags,\
38 $(RST2PDFFLAGS) $(RST2PDF),rst2pdf)
39 setup_flag_files__ := $(setup_flag_files__)$(call gen_rebuild_flags,\
40 $G/rst2html-flags,$(RST2HTMLFLAGS) $(RST2HTML),rst2html)
41 # Print any generated message (if verbose)
42 $(if $V,$(if $(setup_flag_files__), \
43 $(info !! Flags or commands changed:$(setup_flag_files__) re-building \