Debian Codegraph @

texmf-dist/source/latex/proposal/lib/Makefile.in

raw
1 all: package doc
2 package: $(DTX.sty) $(DTX.cls)
3 doc: $(DTX.pdf) $(EXAMPLE.pdf)
4
5 $(DTX.sty) $(DTX.cls): $(INS) $(DTX)
6 $(PDFLATEX) $(INS)
7
8
9 $(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(EXAMPLE.deps)
10 $(PDFLATEX) $(firstword $<)
11 @if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
12 then biber $(patsubst %.dtx, %, $(firstword $<));fi
13 @if (grep 'Please (re)run BibTeX' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
14 then bibtex $(patsubst %.dtx, %, $(firstword $<));fi
15 @if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
16 then makeindex\
17 -o $(patsubst %.dtx, %.ind, $(firstword $<))\
18 $(patsubst %.dtx, %.idx, $(firstword $<)); fi
19 @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
20 then $(PDFLATEX) $(firstword $<); fi
21 @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
22 then $(PDFLATEX) $(firstword $<); fi
23
24 %.ind:
25 touch $@
26
27 $(DTX.pdf): %.pdf: %.dtx $(DTX.sty) $(DTX.cls)
28 $(PDFLATEX) $(firstword $<)
29 @if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
30 then biber $(patsubst %.dtx, %, $(firstword $<));fi
31 @if (grep "Writing glossary file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
32 then makeindex\
33 -o $(patsubst %.dtx, %.gls, $(firstword $<))\
34 $(patsubst %.dtx, %.glo, $(firstword $<)); fi
35 @if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
36 then makeindex\
37 -o $(patsubst %.dtx, %.ind, $(firstword $<))\
38 $(patsubst %.dtx, %.idx, $(firstword $<)); fi
39 @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
40 then $(PDFLATEX) $(firstword $<); fi
41 @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
42 then $(PDFLATEX) $(firstword $<); fi
43
44 clean:
45 rm -f *~ *.log *.ilg *.out *.glo *.idx *.ilg *.blg
46
47 distclean: clean
48 rm -f *.aux *.ind *.gls *.ps *.dvi *.toc *.thm
49 rm -Rf auto
50
51 filedate:
52 @for d in $(DTX); do \
53 $(FILEDATEPROG) $$d ; \
54 done
55
56 checksum:
57 @for d in $(DTX); do \
58 $(CHECKSUMPROG) $$d --update ; \
59 done
60
61 enablechecksum:
62 @for d in $(DTX); do \
63 $(CHECKSUMPROG) $$d --enable ; \
64 done
65
66 disablechecksum:
67 @for d in $(DTX); do \
68 $(CHECKSUMPROG) $$d --disable ; \
69 done
70
71 # copy stuff around for making the TeX Directory Structure
72 ltds:
73 rm -Rf $(TDSDIR.doc);mkdir -p $(TDSDIR.doc)
74 rm -Rf $(TDSDIR.tex);mkdir -p $(TDSDIR.tex)
75 rm -Rf $(TDSDIR.src);mkdir -p $(TDSDIR.src)
76 cp $(DTX.src) $(TDS.src) $(TDSDIR.src)
77 cp $(DTX.sty) $(DTX.cls) $(TDS.tex) $(TDSDIR.tex)
78 cp README $(DTX.pdf) $(EXAMPLE.tex) $(EXAMPLE.pdf) $(TDS.doc) $(TDSDIR.doc)
79 @for d in $(TDS.exdirs); do cp -R $$d $(TDSDIR.doc); done
80
81 lctan:
82 mkdir -p $(CTANDIR)
83 cp $(DTX.src) $(DTX.sty) $(DTX.cls) $(TDS.src) $(TDS.tex) $(CTANDIR)
84 cp README $(DTX.pdf) $(EXAMPLE.tex) $(EXAMPLE.pdf) $(TDS.doc) $(CTANDIR)
85 @for d in $(TDS.exdirs); do cp -R $$d $(CTANDIR); done
86
87 # sometimes (when bibLaTeX changes) we have to rerun biber; use make -B biber
88 biber:
89 pdflatex $(DTX.base:%=%.dtx)
90 biber $(DTX.base)