summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/eledmac/Makefile
blob: 536ba3b37728e317b662c157ddbabf4095bd7ae4 (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
PACKAGE = *.dtx \
		  *.ins \
		  eledmac.pdf \
		  eledpar.pdf \
		  README \
		  Makefile \
		  latexmkrc \



.PHONY: all dist clean


all: eledmac.sty eledmac.pdf eledpar.sty eledpar.pdf dist

doc: *.pdf

README: README.md
	pandoc README.md -o README

%.sty: %.ins %.dtx 
	rm -f $*.sty $*tex
	@pdflatex $*.ins

%.pdf: %.sty %.dtx 
	@xelatex $*.dtx
	@makeindex -s gind.ist -o $*.ind $*.idx
	@makeindex -s gglo.ist -o $*.gls $*.glo
	@xelatex $*.dtx
	@xelatex $*.dtx


dist: $(PACKAGE) examples
	rm -rf eledmac
	mkdir eledmac
	mkdir eledmac/examples
	$(MAKE) -C examples all
	ln examples/*pdf eledmac/examples
	ln examples/*tex eledmac/examples
	ln examples/*xdy eledmac/examples
	ln examples/makefile eledmac/examples

	ln $(PACKAGE) eledmac
	@$(RM) ../eledmac.zip
	zip -r ../eledmac.zip eledmac
	

clean:
	$(MAKE) -C examples clean
	@$(RM) *.aux *.log *.out *.toc *tex *.pdf eledmac.sty eledpar.sty  *ind *ilg  *lof *idx *glo *gls ../eledmac.zip