blob: 741f177a31374306f5b561893df2e9005b447438 (
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
|
DOCTARGET = ptex-manual eptexdoc jfm
# following documents are not maintained anymore;
# even some descriptions might be different from
# current status of pTeX
# jtex_asciimw jtexdoc_asciimw
# ptexdoc_asciimw ptexskip_asciimw
# eptex_resume
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)
ptex-manual.dvi: ptex-manual.tex
platex $(KANJI) ptex-manual.tex
platex $(KANJI) ptex-manual.tex
# makeindex -s gind.ist -o ptex-manual.ind ptex-manual.idx
mendex -U -s gind.ist -o ptex-manual.ind ptex-manual.idx
platex $(KANJI) ptex-manual.tex
rm -f *.aux *.log *.toc *.idx *.ind *.ilg *.out
eptexdoc.dvi: eptexdoc.tex fam256p.tex fam256d.tex
platex $(KANJI) eptexdoc.tex
platex $(KANJI) eptexdoc.tex
mendex -U -s gind.ist eptexdoc.idx
platex $(KANJI) eptexdoc.tex
rm -f *.aux *.log *.toc *.idx *.ind *.ilg *.out
.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/ptex/ptex-manual
cp ./LICENSE ${TEXMF}/doc/ptex/ptex-manual/
cp ./README* ${TEXMF}/doc/ptex/ptex-manual/
cp ./Makefile ${TEXMF}/doc/ptex/ptex-manual/
cp ./*.tex ${TEXMF}/doc/ptex/ptex-manual/
cp ./*.pdf ${TEXMF}/doc/ptex/ptex-manual/
clean:
rm -f $(DVITARGET) $(PDFTARGET)
|