summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/frcursive/Makefile
blob: f4c7e9c1af320aff368e90770eb233645c4ed1e0 (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
# main Makefile for French Cursive
# © 2002--2004 Emmanuel Beffara, GPL
#
#----------------------------------------------------------
#
# Modify the following variables to install the files in the appropriate
# directories for your system.
#
# The base of the TeX hierarchy:

TEXMF = /usr/share/texmf

# The place where the Metafont sources are installed:

MFDIR = $(TEXMF)/fonts/source/frcursive

# The place where the LaTeX sources are installed:

LATEXDIR = $(TEXMF)/tex/latex/misc

# Here ends the customization part.
#
#----------------------------------------------------------

SRCDIR = mf
LTXDIR = latex

FONTS = $(basename $(notdir $(wildcard $(SRCDIR)/frc*.mf)))
SOURCES = frcursive

TFMs = $(addsuffix .tfm,$(FONTS))
SRC = $(addsuffix .mf,$(SOURCES))
ALLSRC = $(addsuffix .mf,$(SOURCES) $(FONTS))
MFs = $(addprefix $(SRCDIR)/,$(SRC))
ALLMFs = $(addprefix $(SRCDIR)/,$(ALLSRC))

MFVAR = env MFINPUTS=.:$(SRCDIR):$$MFINPUTS
LMVAR = $(MFVAR) TEXINPUTS=.:$(LTXDIR):$$TEXINPUTS

.SUFFIXES:
.PHONY: default source doc test type1 clean dist
.SECONDARY: $(TFMs)

#--  Main targets.

default:
	@echo please choose a target...

source:
	@make -C mf
latex: $(LTXDIR)/frcursive.sty
$(LTXDIR)/frcursive.sty: $(LTXDIR)/frcursive.ins $(LTXDIR)/frcursive.dtx
	@make -C latex
doc:
	@make -C doc
test:
	@make -C test
type1:
	@make -C pfb

clean:
	rm -f *.pbm *.*gf *.*pk *.tfm *.dvi *.log *.aux *.ps *.pdf
	rm -rf frcursive
	@make -C mf clean
	@make -C latex clean
	@make -C doc clean
	@make -C test clean

#--  Installation.

install:
	mkdir -p $(MFDIR)
	cp mf/*.mf $(MFDIR)/
	mkdir -p $(LATEXDIR)
	cp latex/* $(LATEXDIR)/

#--  Distribution.

DOCS = doc/COPYING doc/Makefile doc/fcsource.tex doc/FILES

dist:
	make clean source latex
	rm -rf frcursive frcursive.tar.gz
	mkdir frcursive
	mkdir frcursive/mf
	mkdir frcursive/latex
	mkdir frcursive/doc
	mkdir frcursive/test
	cp Makefile README frcursive/
	cp mf/* frcursive/mf/
	cp latex/* frcursive/latex/
	rm -v frcursive/latex/frcursive.log
	cp $(DOCS) frcursive/doc/
	cp test/* frcursive/test/
	tar zcf frcursive.tar.gz frcursive
	rm -rf frcursive

#--  Testing targets.

t:
	rm -f *.tfm *.*pk
	$(MFVAR) tex test/tfc
	xdvi -geometry 1024x768+0+0 -s 2 tfc
tf:
	rm -f *.tfm *.*pk
	echo -e "frcr10\n\\\\table\\\\end" | $(MFVAR) tex testfont
	xdvi testfont

f: frcr10.dvi


%.tfm: $(SRCDIR)/%.mf $(MFs)
	rm -f $(addprefix $(basename $@),.tfm .*pk .*gf)
	$(MFVAR) mktextfm $(basename $@)
%.2602gf: $(SRCDIR)/%.mf $(MFs)
	$(MFVAR) mf $(basename $@)

%.dvi: test/%.tex $(LTXDIR)/frcursive.sty
	$(LMVAR) latex $<

t%.dvi: test/t%.tex
	$(MFVAR) tex $<

frc%.dvi: frc%.2602gf
	gftodvi $<