diff options
Diffstat (limited to 'etc/refcards/Makefile')
-rw-r--r-- | etc/refcards/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/etc/refcards/Makefile b/etc/refcards/Makefile index 5a98ffd3eb8..c08a9b2cfab 100644 --- a/etc/refcards/Makefile +++ b/etc/refcards/Makefile @@ -55,13 +55,19 @@ viper-cards_ps: ${VIPER-CARDS_PDF:.pdf=.ps} cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \ sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex - csplain "\pdfoutput=1\input $<" + if pdfcsplain --version > /dev/null 2> /dev/null; then \ + pdfcsplain $<; \ + else \ + csplain "\pdfoutput=1\input $<"; \ + fi +## Some versions of pdfmex seem to create dvi by default, hence output-format. pl-refcard.pdf: %.pdf: %.tex - if ! kpsewhich -format=fmt mex > /dev/null; then \ + if ! kpsewhich -format=fmt mex > /dev/null && \ + ! pdfmex --version > /dev/null 2> /dev/null; then \ echo "No mex format found."; false; \ fi - pdftex $< + pdftex -output-format=pdf $< ru-refcard.pdf: %.pdf: %.tex pdflatex $< @@ -75,6 +81,10 @@ gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf pdflatex -jobname=gnus-booklet '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}' +## FIXME just pdftex produces portrait rather than landscape. +orgcard.pdf: orgcard.ps + ps2pdf $< + ## Everything not explicitly listed above. %.pdf: %.tex pdftex $< |