|
| 1 | +MKINDEX=makeindex -gs index.format # dfki (German Order) |
| 2 | +DVIPS_OPTIONS=-j0 -Pwww |
| 3 | +#DVIPS_OPTIONS=-Ppdf |
| 4 | + |
| 5 | +all: german-sentence.pdf |
| 6 | + |
| 7 | +check: check-danish.2.ps |
| 8 | + |
| 9 | +SOURCE=german-sentence-include.tex\ |
| 10 | + german-sentence.tex\ |
| 11 | + gs-empty-elements.tex\ |
| 12 | + gs-introduction.tex\ |
| 13 | + gs-mult-fronting.tex\ |
| 14 | + gs-informationstructure.tex\ |
| 15 | + gs-predication.tex\ |
| 16 | + gs-sentence-structure.tex\ |
| 17 | + gs-alternatives.tex |
| 18 | + |
| 19 | +.SUFFIXES: .tex |
| 20 | + |
| 21 | + |
| 22 | +%.ps.gz: %.ps |
| 23 | + cp $*.ps $*.tmp |
| 24 | + gzip $*.tmp |
| 25 | + mv $*.tmp.gz $*.ps.gz |
| 26 | + |
| 27 | +%.2.ps: %.ps |
| 28 | + 2up 2 $*.ps >$*.tmp |
| 29 | + sed -e 's/%!PS-Adobe-2.0/%!PS-Adobe-2.0\n%%Orientation: Landscape/' $*.tmp >$*.2.ps |
| 30 | + rm $*.tmp |
| 31 | + |
| 32 | +%.ps: %.dvi |
| 33 | + dvips -Pwww -j0 $*.dvi -o |
| 34 | + |
| 35 | +%.pdf: %.ps |
| 36 | + ps2pdf13 $*.ps |
| 37 | + |
| 38 | +#thumbpdf --modes=ps2pdf complex.pdf |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +%.pdf: %.tex $(SOURCE) |
| 43 | + xelatex -no-pdf $* |grep -v math |
| 44 | + biber $* |
| 45 | + xelatex -no-pdf $* |grep -v math |
| 46 | + biber $* |
| 47 | + xelatex $* -no-pdf |egrep -v 'math|PDFDocEncod' |egrep 'Warning|label|aux' |
| 48 | + correct-toappear |
| 49 | + correct-index |
| 50 | + \rm $*.adx |
| 51 | + authorindex -i -p $*.aux > $*.adx |
| 52 | + sed -e 's/}{/|hyperpage}{/g' $*.adx > $*.adx.hyp |
| 53 | + makeindex -gs index.format -o $*.and $*.adx.hyp |
| 54 | + makeindex -gs index.format -o $*.lnd $*.ldx |
| 55 | + makeindex -gs index.format -o $*.snd $*.sdx |
| 56 | + xelatex $* | egrep -v 'math|PDFDocEncod' |egrep 'Warning|label|aux' |
| 57 | + |
| 58 | +# idx = author index |
| 59 | +# ldx = language |
| 60 | +# sdx = subject |
| 61 | + |
| 62 | +# mit biblatex |
| 63 | +# makeindex -gs index.format -o $*.ind $*.idx |
| 64 | + |
| 65 | + |
| 66 | +# \rm $*.adx |
| 67 | +# authorindex -i -p $*.aux > $*.adx |
| 68 | +# sed -e 's/}{/|hyperpage}{/g' $*.adx > $*.adx.hyp |
| 69 | +# makeindex -gs index.format -o $*.and $*.adx.hyp |
| 70 | +# xelatex $* | egrep -v 'math|PDFDocEncod' |egrep 'Warning|label|aux' |
| 71 | + |
| 72 | + |
| 73 | +# the second BibTeX call resolves cross references, |
| 74 | +# this may change the number of pages, but since the indices are not in |
| 75 | +# the table of contents, we do not care |
| 76 | +kkk-danish.pdf: $(SOURCE) |
| 77 | + pdflatex danish |
| 78 | + bibtex danish |
| 79 | + pdflatex danish |
| 80 | + bibtex danish |
| 81 | + correct-toappear |
| 82 | + correct-index |
| 83 | + makeindex -gs index.format -o danish.ind danish.idx |
| 84 | + \rm danish.adx |
| 85 | + authorindex -i -p danish.aux > danish.adx |
| 86 | + sed -e 's/}{/|hyperpage}{/g' danish.adx > danish.adx.hyp |
| 87 | + makeindex -gs index.format -o danish.and danish.adx.hyp |
| 88 | + pdflatex danish |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | +/Users/stefan/public_html/PS/german-sentence.pdf: german-sentence.pdf |
| 93 | + cp -p $? /Users/stefan/public_html/PS/german-sentence.pdf |
| 94 | + |
| 95 | + |
| 96 | +o-public: /Users/stefan/public_html/PS/german-sentence.pdf |
| 97 | +# svn commit -m "automatic checkin" |
| 98 | + scp -p $? hpsg.hu-berlin.de:public_html/PS/ |
| 99 | + |
| 100 | + |
| 101 | +code-public: |
| 102 | + tar cjvf /tmp/german-sentence.tbz *.tex Makefile styles/ Bibliography/ |
| 103 | + scp -p /tmp/german-sentence.tbz home.hpsg.fu-berlin.de:/home/stefan/public_html/transfer/ |
| 104 | + |
| 105 | +clean: |
| 106 | + rm -f *.bak *~ *.log *.blg *.bbl *.aux *.toc *.cut *.out *.tmp *.tpm *.adx *.idx *.ilg *.ind *.and *.glg *.glo *.gls *.657pk *.for *.wdx *.rdx *.ldx *.aux.copy *.lnd *.ldx *.sdx *.snd *.run.xml *.xdv *.mw *.bcf *.adx.hyp |
| 107 | + |
| 108 | +check-clean: |
| 109 | + rm -f *.bak *~ *.log *.blg complex-draft.dvi |
| 110 | + |
| 111 | +realclean: clean |
| 112 | + rm -f *.dvi *.ps *.pdf |
| 113 | + |
| 114 | + |
| 115 | + |
0 commit comments