| 1 |
|
| 2 |
PACKAGE=glossaries-ukrainian |
| 3 |
|
| 4 |
SAMPLES = |
| 5 |
|
| 6 |
|
| 7 |
PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf} |
| 8 |
|
| 9 |
all: ${PDF} $(PACKAGE).ldf $(PACKAGE).dict |
| 10 |
|
| 11 |
|
| 12 |
%.pdf: %.dtx |
| 13 |
lualatex $< |
| 14 |
- bibtex $* |
| 15 |
lualatex $< |
| 16 |
- makeindex -s gind.ist -o $*.ind $*.idx |
| 17 |
- makeindex -s gglo.ist -o $*.gls $*.glo |
| 18 |
lualatex $< |
| 19 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 20 |
do lualatex $<; done |
| 21 |
|
| 22 |
|
| 23 |
%.ldf: %.ins %.dtx |
| 24 |
lualatex $< |
| 25 |
|
| 26 |
%.dict: %.ins %.dtx |
| 27 |
lualatex $< |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
.PRECIOUS: $(PACKAGE).ldf $(PACKAGE).dict |
| 32 |
|
| 33 |
|
| 34 |
clean: |
| 35 |
$(RM) $(PACKAGE).ldf *.log *.aux \ |
| 36 |
*.glo *.idx *.toc *.tbc *.hd \ |
| 37 |
*.ilg *.ind *.out *.lof \ |
| 38 |
*.lot *.bbl *.blg *.gls *.ldf *.ist \ |
| 39 |
*.dvi *.ps *.thm *.tgz *.zip *.dict |
| 40 |
|
| 41 |
distclean: clean |
| 42 |
$(RM) $(PDF) |
| 43 |
|
| 44 |
# |
| 45 |
# Archive for the distribution. Includes typeset documentation |
| 46 |
# |
| 47 |
archive: all clean |
| 48 |
COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' $(PACKAGE); mv ../$(PACKAGE).tgz . |
| 49 |
|
| 50 |
|
| 51 |
zip: all clean |
| 52 |
zip -r $(PACKAGE).zip * \ |
| 53 |
-x 'debug*' -x '*~' -x '*.tgz' -x '*.zip' -x .git* -x '.git/*' |