| 1 |
PACKAGE = *.dtx \ |
| 2 |
*.ins \ |
| 3 |
reledmac.pdf \ |
| 4 |
reledpar.pdf \ |
| 5 |
migration.pdf \ |
| 6 |
README.md \ |
| 7 |
makefile \ |
| 8 |
latexmkrc \ |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
.PHONY: all dist clean doc test |
| 13 |
|
| 14 |
|
| 15 |
all: test reledmac.sty reledpar.sty reledmac.pdf reledpar.pdf migration.pdf dist |
| 16 |
|
| 17 |
doc: *.pdf |
| 18 |
|
| 19 |
test: *dtx |
| 20 |
l3build check -H --show-log-on-error |
| 21 |
|
| 22 |
migration.pdf: migration.dtx |
| 23 |
pdflatex $< |
| 24 |
pdflatex $< |
| 25 |
pdflatex $< |
| 26 |
|
| 27 |
%.sty: %.ins %.dtx |
| 28 |
rm -f $*.sty |
| 29 |
@pdflatex $*.ins |
| 30 |
|
| 31 |
%.pdf: %.sty %.dtx |
| 32 |
@pdflatex $*.dtx |
| 33 |
@makeindex -s gind.ist -o $*.ind $*.idx |
| 34 |
@makeindex -s gglo.ist -o $*.gls $*.glo |
| 35 |
@pdflatex $*.dtx |
| 36 |
@makeindex -s gind.ist -o $*.ind $*.idx |
| 37 |
@makeindex -s gglo.ist -o $*.gls $*.glo |
| 38 |
@pdflatex $*.dtx |
| 39 |
|
| 40 |
dist: $(PACKAGE) examples |
| 41 |
rm -rf reledmac |
| 42 |
mkdir reledmac |
| 43 |
@pdflatex 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 |
| 44 |
rm -f examples/*pdf |
| 45 |
$(MAKE) -C examples all |
| 46 |
mkdir reledmac/examples |
| 47 |
ln examples/*pdf reledmac/examples |
| 48 |
ln examples/*tex reledmac/examples |
| 49 |
ln examples/*xdy reledmac/examples |
| 50 |
ln examples/makefile reledmac/examples |
| 51 |
ln examples/latexmkrc reledmac/examples |
| 52 |
mkdir reledmac/doc-include |
| 53 |
ln doc-include/*dtx reledmac/doc-include |
| 54 |
$(MAKE) -C doc-more all |
| 55 |
mkdir reledmac/doc-more |
| 56 |
ln doc-more/*pdf reledmac/doc-more |
| 57 |
ln doc-more/*tex reledmac/doc-more |
| 58 |
ln doc-more/makefile reledmac/doc-more |
| 59 |
ln doc-more/latexmkrc reledmac/doc-more |
| 60 |
ln $(PACKAGE) reledmac |
| 61 |
rm -rf build |
| 62 |
@$(RM) ../reledmac.zip |
| 63 |
zip -r ../reledmac.zip reledmac |
| 64 |
|
| 65 |
|
| 66 |
clean: |
| 67 |
$(MAKE) -C examples clean |
| 68 |
@$(RM) *xdv *.aux *.log *.out *.toc *tex *.pdf reledmac.sty reledpar.sty *ind *ilg *lof *idx *glo *gls ../reledmac.zip |