summaryrefslogtreecommitdiff
path: root/fonts/arsenal/Makefile
blob: c550b15f5f772a43c1ce97c394a83a366a30fa6d (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
PACKAGE=arsenal

FONTS = \
	Arsenal-Bold.otf \
	Arsenal-BoldItalic.otf \
	Arsenal-Italic.otf \
	Arsenal-Regular.otf 

SAMPLES = \
	sample-math-arsenal+kpsans.tex \
	sample-math-iwona.tex \
	sample-math-kpsans.tex \
	sample-text.tex

PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}

all:  ${PDF} $(PACKAGE).sty $(FONTS) LICENSE_FONTS


%.pdf:  %.dtx   $(PACKAGE).sty $(FONTS)
	xelatex $<
	- bibtex $*
	xelatex $<
	- makeindex -s gind.ist -o $*.ind $*.idx
	- makeindex -s gglo.ist -o $*.gls $*.glo
	xelatex $<
	while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
	do xelatex $<; done


%.sty:   %.ins %.dtx  
	xelatex $<

%.pdf:  %.tex   $(PACKAGE).sty $(FONTS)
	xelatex $<
	- bibtex $*
	xelatex $<
	xelatex $<
	while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
	do xelatex $<; done


sample-math-arsenal+kpsans.pdf:  sample-math-arsenal+kpsans.tex   $(PACKAGE).sty $(FONTS)
	lualatex $<
	- bibtex sample-math-arsenal+kpsans
	lualatex $<
	lualatex $<
	while ( grep -q '^LaTeX Warning: Label(s) may have changed' sample-math-arsenal+kpsans.log) \
	do lualatex $<; done


sample-math-%.tex: $(PACKAGE).ins sample-math.dtx
	xelatex $<

%.otf: arsenal-fonts/fonts/otf/%.otf
	cp $< $@

LICENSE_FONTS: arsenal-fonts/OFL.TXT
	cp $< $@

clean:
	$(RM)  *_FAMILY_* *.log *.aux \
	*.cfg *.glo *.idx *.toc \
	*.ilg *.ind *.out *.lof \
	*.lot *.bbl *.blg *.gls \
	*.dvi *.ps *.thm *.tgz *.zip *.rpi \
        *.hd  *.sty sample-math-*.tex


distclean: clean
	$(RM) $(PDF) $(PACKAGE).sty $(FONTS) LICENSE_FONTS

#
# Archive for the distribution. Includes typeset documentation
#
archive:  all clean
	COPYFILE_DISABLE=1  \
	tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude arsenal-fonts \
	--exclude '*.tgz' --exclude '*.zip'  --exclude ".git*" $(PACKAGE)
	mv ../$(PACKAGE).tgz .

zip:  all clean
	make $(PACKAGE).sty
	$(RM) $(PACKAGE).log
	cd ..;\
	zip -r  $(PACKAGE).zip $(PACKAGE) -x "*.ins" -x "*.gitignore"