summaryrefslogtreecommitdiff
path: root/fonts/eurosym/src/Makefile
blob: ca27dd709714d0c6dd6ff9278572d0ceb5652eed (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
RCSFILES=../sty/eurosym.sty \
         fey.mf \
         ../README \
         ../Changes \
         ../doc/testeuro.tex \
         makemfs \
         Makefile
TARDIR=$(HOME)/transfer
VERSION=1.3

SHAPES=bl bo br ml mo mr
FILES=$(addprefix fey, $(addsuffix 10, $(SHAPES)))

MF_FILES=  $(addsuffix .mf, $(FILES))
TFM_FILES= $(addprefix ../tfm/, $(addsuffix .tfm, $(FILES)))

all: mf tfm feymr10.dvi feybr10.dvi ../doc/testeuro.dvi
.PHONY: All

.PRECIOUS: $(TFM_FILES) $(MF_FILES)

%.dvi: %.2602gf
	gftodvi $<

%.2602gf: %.mf fey.mf
	mf $<

feymr10.mf feybr10.mf: makemfs
	./makemfs -mf

../doc/testeuro.dvi: ../doc/testeuro.tex feymr10.mf
	(cd ../doc; latex testeuro.tex)

.PHONY: clean
clean: clean-keep-tfm
	rm -f ../tfm/*.tfm

.PHONY: clean-keep-tfm
clean-keep-tfm:
	rm -f /var/texfonts/tfm/fey*.tfm
	rm -f /var/texfonts/pk/*/fey*.*pk
	rm -f ../doc/fey*.*pk
	rm -f *.log *.aux *.2602gf *.600gf *10.mf *~ *.ps* ../doc/*.ps* ../doc/*.log ../doc/*.aux
	rm -f *.tfm
	cat /dev/null >../doc/testeuro.dvi
	cat /dev/null >feymr10.dvi
	cat /dev/null >feybr10.dvi


.PHONY: mf
mf:
	./makemfs -mf

%.mf: mf

%.tfm: %.mf
	mf '\mode:=ljfour; mag:=1; nonstopmode; input $<'

../tfm/%: %
	cp $< $@

.PHONY: tfm
tfm: mf
	$(MAKE) $(TFM_FILES)

dummy:

ps: ../doc/testeuro.ps.gz

print: ../doc/testeuro.ps.gz
	lpr $<

../doc/testeuro.ps.gz: ../doc/testeuro.dvi
	rm -f $@
	(cd ../doc; dvips -D600 testeuro.dvi -o testeuro.ps && gzip -f testeuro.ps)

ci: dummy
	for i in $(RCSFILES); do \
	  if [ -w $$i ]; then \
	    ci $$i </dev/null; \
	  fi; \
	  if [ ! -f $$i ]; then \
	    co $$i </dev/null; \
	  fi; \
	done

.PHONY: cleandvi
cleandvi: dummy
	rm -f *.dvi ../doc/*.dvi