summaryrefslogtreecommitdiff
path: root/fonts/greek/kd/Makefile
blob: 5b0c68205a2d617c470fec8f9e1699dbba267d8d (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# =====================================================================
# 	General Unix Makefile For GreekTeX Package
# =====================================================================


# =====================================================================
#	SITE MODIFICATION PART (modify that according to your site)
# =====================================================================
#
# 	what shell are you using?
SHELL = /bin/sh
# 	where are your tex binaries
BINDIR = /usr/local/lptex/bin
# 	how is the program that creates a new font called
NEWFONT = unix/newfont -o
#	the switch in order to specify to NEWFONT the scale of the font
NEWFONTSCALESWITCH = -s
# 	where your style files are placed
STYDIR = /usr/local/lptex/lib/macros
# 	where are your mf files placed
MFDIR = /usr/local/lptex/lib/mfmacros
#	where are your format files
FMTDIR = /usr/local/lptex/lib/formats
#	where should the man pages go?
MANDIR = /usr/local/lptex/lib/man/man1
#
# =====================================================================
#	Please do not modify these parameters
# =====================================================================


MAG750 = kdgr8 kdbf8
MAG800 = kdsl10 kdti10 kdtt10
MAG900 = $(MAG800)
MAG1000 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
MAG1095 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
MAG1200 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
MAG1440 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
MAG1795 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10

# =====================================================================
#	Installation
# =====================================================================

all: install.fonts install

install.fonts: fonts

install: dirhier install.formats install.macros install.bin install.man

install.formats: formats
	-cp build/formats/greek.fmt $(FMTDIR)
	-cp build/formats/lgreek.fmt $(FMTDIR)

install.macros:
	-cp tex/*.tex $(STYDIR)
	-cp latex/*.sty $(STYDIR)
	-cp latex/*.tex $(STYDIR)

install.bin:
	-cp unix/newfont $(BINDIR)
	-cp unix/greektex $(BINDIR)
	-cp unix/grlatex $(BINDIR)

install.man:
	-cp doc/grlatex.1 $(MANDIR)


# =====================================================================
#	Auxiliary tasks
# =====================================================================

clean:
	-rm -rf build

dirhier:
	-(if [ ! -d build ] ; then mkdir build; fi)
	-(if [ ! -d build/formats ] ; then mkdir build/formats; fi)
	-(if [ ! -d build/log ] ; then mkdir build/log; fi)

tar:
	-rm -f kdgreek31.zip
	-tar -cf /tmp/tt.tar .
	-compress /tmp/tt.tar
	-mv /tmp/tt.tar.Z kdgreek3.1.tar.Z

zip: 
	-(NOZIP=.Z:.zip:.tar; export NOZIP; \
	 zip -r -k kdgreek31.zip * -x *.Z )
	
# =====================================================================
#	build the formats
# =====================================================================

formats: dirhier build/formats/greek.fmt build/formats/lgreek.fmt

build/formats/greek.fmt: tex/greek.tex
	(cd tex ; 		\
	initex greek \\dump ;	\
	mv greek.fmt ../build/formats ; \
	mv greek.log ../build/log )

build/formats/lgreek.fmt: latex/lgreek.tex
	(cd latex ; \
	initex lgreek \\dump ; \
	mv lgreek.fmt ../build/formats ; \
	mv lgreek.log ../build/log )


# =====================================================================
#	build the family of fonts
# =====================================================================
fonts:
	-for f in $(MAG750);						\
	do								\
		(cd mf ; \
		../$(NEWFONT)  $(NEWFONTSCALESWITCH) 750 $$f); \
	done								
	-for f in $(MAG800);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 800 $$f);\
	done								
	-for f in $(MAG900);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 900 $$f);\
	done								
	-for f in $(MAG1200);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 1200 $$f);\
	done								
	-for f in $(MAG1095);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 1095 $$f);\
	done								
	-for f in $(MAG1000);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 1000 $$f);\
	done								
	-for f in $(MAG1440);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 1440 $$f);\
	done								
	-for f in $(MAG1795);						\
	do								\
		(cd mf ; \
		../$(NEWFONT) $(NEWFONTSCALESWITCH) 1795 $$f);\
	done