blob: 205ea0ea3231ba17de45ee3663698cd3bd570b05 (
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
|
DOCTARGET = mendex
PDFTARGET = $(addsuffix .pdf,$(DOCTARGET))
DVITARGET = $(addsuffix .dvi,$(DOCTARGET))
KANJI = -kanji=utf8
FONTMAP = -f ipaex.map -f ptex-ipaex.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
default: $(DVITARGET)
all: $(PDFTARGET)
.SUFFIXES: .tex .dvi .pdf
.tex.dvi:
platex $(KANJI) $<
platex $(KANJI) $<
platex $(KANJI) $<
rm -f *.aux *.log *.toc
.dvi.pdf:
dvipdfmx $(FONTMAP) $<
.PHONY: install clean
install:
mkdir -p ${TEXMF}/doc/support/mendex
cp ./LICENSE ${TEXMF}/doc/support/mendex/
cp ./README* ${TEXMF}/doc/support/mendex/
cp ./Makefile ${TEXMF}/doc/support/mendex/
cp ./*.tex ${TEXMF}/doc/support/mendex/
cp ./*.pdf ${TEXMF}/doc/support/mendex/
clean:
rm -f $(DVITARGET) $(PDFTARGET)
|