blob: 9db14d0e6df821f3b49cefdf3b2e137f8308ddf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
TEXS = $(wildcard *.tex)
MAIN = sample-use-sty
all: $(MAIN).pdf
biblatex-styles: stublist mkbiblatexstubs.sh
bash mkbiblatexstubs.sh < stublist
swentries.tex: ../swentry.org
../bin/export-org-to-latex $<
../bin/extract-entries.pl < ../swentry.tex > $@
software-biblatex.pdf: software-biblatex.tex swentries.tex history.tex
pdflatex software-biblatex.tex
bibtex software-biblatex
pdflatex software-biblatex.tex
pdflatex software-biblatex.tex
history.tex:
git for-each-ref --format="\begin{release}{%(refname:short)}{%(taggerdate:short)} \item %(subject) \end{release}" refs/tags | grep bltx | tac > history.tex
sample.tex : biblatex-styles
%.pdf: %.tex
ifeq (, $(shell PATH=$(PATH) which rubber))
echo "No rubber in $(PATH), falling back to basic pdflatex calls"
pdflatex $<
biber $*
pdflatex $<
else
rubber -m pdftex $<
endif
distrib:
# update history
rm history.tex
make software-biblatex.pdf
tar --transform 's,^\(.\),biblatex-software/\1,' -czhvf biblatex-software.tar.gz `git ls-files`
clean: $(patsubst %,%/clean,$(TEXS))
rm -f *+sw.bbx *+sw.dbx *+sw.cbx *+sw.lbx *~
%/clean:
if [ -f $* ]; then rubber -m pdftex --clean $* ; fi
distclean: clean
|