Mercurial > emacs
comparison etc/refcards/Makefile @ 107317:994a9686476c
Small tweaks to etc/refcards/Makefile rules for PDFs.
* refcards/Makefile: For cs- and sk-, use pdfcsplain if available.
(pl-refcard.pdf): Let presence of pdfmex be another test for the
required TeX files. Pass explicit output-format to tex command.
(orgcard.pdf): Use ps2pdf, since pdftex tends to produce a
portrait layout rather than the desired landscape.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Mon, 01 Mar 2010 19:47:19 -0800 |
parents | 1d1d5d9bd884 |
children | 93601e9ff001 |
comparison
equal
deleted
inserted
replaced
107316:3463009c99e0 | 107317:994a9686476c |
---|---|
53 | 53 |
54 ## The page layouts (a4/letter) are written directly in the .tex files. | 54 ## The page layouts (a4/letter) are written directly in the .tex files. |
55 | 55 |
56 cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \ | 56 cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \ |
57 sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex | 57 sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex |
58 csplain "\pdfoutput=1\input $<" | 58 if pdfcsplain --version > /dev/null 2> /dev/null; then \ |
59 pdfcsplain $<; \ | |
60 else \ | |
61 csplain "\pdfoutput=1\input $<"; \ | |
62 fi | |
59 | 63 |
64 ## Some versions of pdfmex seem to create dvi by default, hence output-format. | |
60 pl-refcard.pdf: %.pdf: %.tex | 65 pl-refcard.pdf: %.pdf: %.tex |
61 if ! kpsewhich -format=fmt mex > /dev/null; then \ | 66 if ! kpsewhich -format=fmt mex > /dev/null && \ |
67 ! pdfmex --version > /dev/null 2> /dev/null; then \ | |
62 echo "No mex format found."; false; \ | 68 echo "No mex format found."; false; \ |
63 fi | 69 fi |
64 pdftex $< | 70 pdftex -output-format=pdf $< |
65 | 71 |
66 ru-refcard.pdf: %.pdf: %.tex | 72 ru-refcard.pdf: %.pdf: %.tex |
67 pdflatex $< | 73 pdflatex $< |
68 | 74 |
69 #gnus-logo.pdf: %.pdf: %.eps | 75 #gnus-logo.pdf: %.pdf: %.eps |
72 gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf | 78 gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf |
73 pdflatex $< | 79 pdflatex $< |
74 | 80 |
75 gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf | 81 gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf |
76 pdflatex -jobname=gnus-booklet '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}' | 82 pdflatex -jobname=gnus-booklet '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}' |
83 | |
84 ## FIXME just pdftex produces portrait rather than landscape. | |
85 orgcard.pdf: orgcard.ps | |
86 ps2pdf $< | |
77 | 87 |
78 ## Everything not explicitly listed above. | 88 ## Everything not explicitly listed above. |
79 %.pdf: %.tex | 89 %.pdf: %.tex |
80 pdftex $< | 90 pdftex $< |
81 | 91 |