| 1 |
PACKAGE=arsenal |
| 2 |
|
| 3 |
FONTS = \ |
| 4 |
Arsenal-Bold.otf \ |
| 5 |
Arsenal-BoldItalic.otf \ |
| 6 |
Arsenal-Italic.otf \ |
| 7 |
Arsenal-Regular.otf |
| 8 |
|
| 9 |
SAMPLES = \ |
| 10 |
sample.tex |
| 11 |
|
| 12 |
PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf} |
| 13 |
|
| 14 |
all: ${PDF} $(PACKAGE).sty $(FONTS) LICENSE_FONTS |
| 15 |
|
| 16 |
|
| 17 |
%.pdf: %.dtx $(PACKAGE).sty $(FONTS) |
| 18 |
lualatex $< |
| 19 |
- bibtex $* |
| 20 |
lualatex $< |
| 21 |
- makeindex -s gind.ist -o $*.ind $*.idx |
| 22 |
- makeindex -s gglo.ist -o $*.gls $*.glo |
| 23 |
lualatex $< |
| 24 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 25 |
do lualatex $<; done |
| 26 |
|
| 27 |
|
| 28 |
%.sty: %.ins %.dtx |
| 29 |
lualatex $< |
| 30 |
|
| 31 |
%.pdf: %.tex $(PACKAGE).sty $(FONTS) |
| 32 |
lualatex $< |
| 33 |
- bibtex $* |
| 34 |
lualatex $< |
| 35 |
lualatex $< |
| 36 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 37 |
do lualatex $<; done |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
%.otf: arsenal-fonts/fonts/otf/%.otf |
| 42 |
cp $< $@ |
| 43 |
|
| 44 |
LICENSE_FONTS: arsenal-fonts/OFL.TXT |
| 45 |
cp $< $@ |
| 46 |
|
| 47 |
clean: |
| 48 |
$(RM) *_FAMILY_* *.log *.aux \ |
| 49 |
*.cfg *.glo *.idx *.toc \ |
| 50 |
*.ilg *.ind *.out *.lof \ |
| 51 |
*.lot *.bbl *.blg *.gls \ |
| 52 |
*.dvi *.ps *.thm *.tgz *.zip *.rpi \ |
| 53 |
*.hd *.sty sample-math-*.tex |
| 54 |
|
| 55 |
|
| 56 |
distclean: clean |
| 57 |
$(RM) $(PDF) $(PACKAGE).sty $(FONTS) LICENSE_FONTS |
| 58 |
|
| 59 |
# |
| 60 |
# Archive for the distribution. Includes typeset documentation |
| 61 |
# |
| 62 |
archive: all clean |
| 63 |
COPYFILE_DISABLE=1 \ |
| 64 |
tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude arsenal-fonts \ |
| 65 |
--exclude '*.tgz' --exclude '*.zip' --exclude ".git*" $(PACKAGE) |
| 66 |
mv ../$(PACKAGE).tgz . |
| 67 |
|
| 68 |
zip: all clean |
| 69 |
make $(PACKAGE).sty |
| 70 |
$(RM) $(PACKAGE).log |
| 71 |
cd ..;\ |
| 72 |
zip -r $(PACKAGE).zip $(PACKAGE) -x "*.ins" -x "*.gitignore" |
| 73 |
|