blob: 99198706c237b68bf7d64476ab1a917c59b42dac (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
PACKAGE = *.dtx \
*.ins \
reledmac.pdf \
reledpar.pdf \
migration.pdf \
README \
makefile \
latexmkrc \
.PHONY: all dist clean
all: reledmac.sty reledpar.sty reledmac.pdf reledpar.pdf migration.pdf dist
doc: *.pdf
migration.pdf: migration.dtx
xelatex -no-pdf $<
xelatex -no-pdf $<
xelatex -no-pdf $<
xdvipdfmx migration.xdv
README: README.md
pandoc README.md -o README
%.sty: %.ins %.dtx
rm -f $*.sty
@pdflatex $*.ins
%.pdf: %.sty %.dtx
@xelatex -no-pdf $*.dtx
@makeindex -s gind.ist -o $*.ind $*.idx
@makeindex -s gglo.ist -o $*.gls $*.glo
@xelatex -no-pdf $*.dtx
@makeindex -s gind.ist -o $*.ind $*.idx
@makeindex -s gglo.ist -o $*.gls $*.glo
@xelatex -no-pdf $*.dtx
@xdvipdfmx $*.xdv
dist: $(PACKAGE) examples
rm -rf reledmac
mkdir reledmac
@xelatex reledmac.dtx #We call it at last time because reledmac handbook can refer to page of reledpar handbook, and so we need to run reledmac.dtx a last time after reledpar.dtx has been run
rm -f examples/*pdf
$(MAKE) -C examples all
mkdir reledmac/examples
ln examples/*pdf reledmac/examples
ln examples/*tex reledmac/examples
ln examples/*xdy reledmac/examples
ln examples/makefile reledmac/examples
ln examples/latexmkrc reledmac/examples
mkdir reledmac/doc-include
ln doc-include/*dtx reledmac/doc-include
$(MAKE) -C doc-more all
mkdir reledmac/doc-more
ln doc-more/*pdf reledmac/doc-more
ln doc-more/*tex reledmac/doc-more
ln doc-more/makefile reledmac/doc-more
ln doc-more/latexmkrc reledmac/doc-more
ln $(PACKAGE) reledmac
@$(RM) ../reledmac.zip
zip -r ../reledmac.zip reledmac
clean:
$(MAKE) -C examples clean
@$(RM) *xdv *.aux *.log *.out *.toc *tex *.pdf reledmac.sty reledpar.sty *ind *ilg *lof *idx *glo *gls ../reledmac.zip
|