-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
64 lines (58 loc) · 1.89 KB
/
Makefile
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
DOCTARGET = ptex-manual eptexdoc jfm \
ptex-guide-en
# 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
FONTMAP = -f ptex-haranoaji.map -f otf-haranoaji.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
ifdef PLATEX
PLATEX=${foo}
else
PLATEX=platex
endif
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
ptex-guide-en.dvi: ptex-guide-en.tex
$(PLATEX) $(KANJI) ptex-guide-en.tex
$(PLATEX) $(KANJI) ptex-guide-en.tex
# makeindex -s gind.ist -o ptex-guide-en.ind ptex-guide-en.idx
mendex -U -s gind.ist -o ptex-guide-en.ind ptex-guide-en.idx
$(PLATEX) $(KANJI) ptex-guide-en.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 ./*.tex ${TEXMF}/doc/ptex/ptex-manual/
cp ./*.pdf ${TEXMF}/doc/ptex/ptex-manual/
clean:
rm -f $(DVITARGET) $(PDFTARGET)