summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/platex/base/Makefile
blob: 63bbcb099b9155db6ab62f532b41b8fc0c273d2e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
TARGET1 = platex.ltx jarticle.cls pl209.def platexrelease.sty \
	nidanfloat.sty tascmac.sty
TARGET2 = platex.pdf platexrelease.pdf pldoc.pdf \
	nidanfloat.pdf ascmac.pdf
KANJI = -kanji=jis
FONTMAP = -f ipaex.map -f ptex-ipaex.map

all: $(TARGET1) $(TARGET2)

PLFMT = platex.ltx plcore.ltx kinsoku.tex pldefs.ltx \
	jy1mc.fd jy1gt.fd jt1mc.fd jt1gt.fd plext.sty \
	ptrace.sty pfltrace.sty

PLFMT_SRC = platex.dtx plvers.dtx plfonts.dtx plcore.dtx \
	kinsoku.dtx plext.dtx

PLCLS = jarticle.cls jreport.cls jbook.cls jsize10.clo \
	jsize11.clo jsize12.clo jbk10.clo jbk11.clo jbk12.clo \
	tarticle.cls treport.cls tbook.cls tsize10.clo \
	tsize11.clo tsize12.clo tbk10.clo tbk11.clo tbk12.clo

PLCLS_SRC = jclasses.dtx

PL209 = pl209.def oldpfont.sty jarticle.sty tarticle.sty \
	jbook.sty tbook.sty jreport.sty treport.sty

PL209_SRC = pl209.dtx

PLREL = platexrelease.sty

PLREL_SRC = platexrelease.dtx $(PLFMT_SRC)

NIDAN = nidanfloat.sty

NIDAN_SRC = nidanfloat.dtx

ASCMAC = tascmac.sty ascmac.sty

ASCMAC_SRC = ascmac.dtx

INTRODOC_SRC = platex.dtx

PLRELDOC_SRC = platexrelease.dtx

PLDOC_SRC = platex.dtx plvers.dtx plfonts.dtx plcore.dtx plext.dtx \
	pl209.dtx kinsoku.dtx jclasses.dtx jltxdoc.dtx

platex.ltx: $(PLFMT_SRC)
	for x in $(PLFMT); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) plfmt.ins
	rm plfmt.log

jarticle.cls: $(PLCLS_SRC)
	for x in $(PLCLS); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) plcls.ins
	rm plcls.log

pl209.def: $(PL209_SRC)
	for x in $(PL209); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) pl209.ins
	rm pl209.log

platexrelease.sty: $(PLREL_SRC)
	for x in $(PLREL); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) platexrelease.ins
	rm platexrelease.log

nidanfloat.sty: $(NIDAN_SRC)
	for x in $(NIDAN); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) nidanfloat.ins
	rm nidanfloat.log

tascmac.sty: $(ASCMAC_SRC)
	for x in $(ASCNAC); do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) ascmac.ins
	rm ascmac.log

platex.pdf: $(INTRODOC_SRC)
	platex $(KANJI) platex.dtx
	mendex -f -s gglo.ist -o platex.gls platex.glo
	platex $(KANJI) platex.dtx
	dvipdfmx $(FONTMAP) platex.dvi
	rm platex.aux platex.log platex.dvi
	rm platex.glo platex.gls platex.ilg

platexrelease.pdf: $(PLRELDOC_SRC)
	platex $(KANJI) platexrelease.dtx
	platex $(KANJI) platexrelease.dtx
	dvipdfmx $(FONTMAP) platexrelease.dvi
	rm platexrelease.aux platexrelease.log platexrelease.dvi

pldoc.pdf: $(PLDOC_SRC)
	for x in jltxdoc.cls pldoc.tex Xins.ins; do \
	if [ -e $$x ]; then rm $$x; fi \
	done
	platex $(KANJI) pldocs.ins
	platex $(KANJI) Xins.ins
	sh mkpldoc.sh
	dvipdfmx $(FONTMAP) pldoc.dvi
	rm *.aux *.log pldoc.toc pldoc.idx pldoc.ind pldoc.ilg
	rm pldoc.glo pldoc.gls *.dvi pldoc.tex Xins.ins
	rm *.cfg pldoc.dic mkpldoc.sh dstcheck.pl

nidanfloat.pdf: $(NIDAN_SRC)
	platex $(KANJI) nidanfloat.dtx
	platex $(KANJI) nidanfloat.dtx
	dvipdfmx $(FONTMAP) nidanfloat.dvi
	rm nidanfloat.aux nidanfloat.log nidanfloat.dvi

ascmac.pdf: $(ASCMAC_SRC)
	platex $(KANJI) ascmac.dtx
	platex $(KANJI) ascmac.dtx
	dvipdfmx $(FONTMAP) ascmac.dvi
	rm ascmac.aux ascmac.log ascmac.toc ascmac.dvi

.PHONY: clean
clean:
	for x in $(PLFMT) $(PLCLS) $(PL209) $(PLREL) \
	$(NIDAN) $(ASCMAC) \
	platex.pdf platexrelease.pdf pldoc.pdf \
	nidanfloat.pdf ascmac.pdf \
	jltxdoc.cls pldoc.tex Xins.ins; do \
	if [ -e $$x ]; then rm $$x; fi \
	done