| 1 |
TFMFILES=yhcmex10.tfm yrcmex10.tfm |
| 2 |
VFFILES=yhcmex10.vf |
| 3 |
MFFILES=yhbigacc.mf yhbigdel.mf yhmathex.mf yrcmex10.mf |
| 4 |
VPLFILES=yhcmex10.vpl |
| 5 |
TEXFILES=OMXyhex.fd yhmath.sty |
| 6 |
MAPFILES=yhmath.map |
| 7 |
DOCFILES=yhmath.pdf |
| 8 |
DRVFILES=yhmath.drv |
| 9 |
|
| 10 |
PFBFILES=yhcmex.pfb |
| 11 |
SOURCEFILES=yhmath.dtx yhmath.ins |
| 12 |
|
| 13 |
CLEANFILES=$(MFFILES) $(VPLFILES) $(TEXFILES) $(MAPFILES) $(DRVFILES) |
| 14 |
EXTRACLEANFILES=$(TFMFILES) $(VFFILES) $(DOCFILES) |
| 15 |
GENFILES=$(TFMFILES) $(VFFILES) $(DOCFILES) $(MFFILES) $(VPLFILES) $(TEXFILES) $(MAPFILES) $(DRVFILES) |
| 16 |
|
| 17 |
DESTDIR ?= /usr/local/share/texmf |
| 18 |
CLEANRM ?= : |
| 19 |
|
| 20 |
all: $(GENFILES) |
| 21 |
|
| 22 |
install: $(TFMFILES) $(VFFILES) $(MFFILES) $(TEXFILES) $(MAPFILES) $(DOCFILES) $(PFBFILES) $(SOURCEFILES) |
| 23 |
mkdir -p $(DESTDIR)/fonts/tfm/public/yhmath |
| 24 |
$(CLEANRM) $(DESTDIR)/fonts/tfm/public/yhmath/* |
| 25 |
cp $(TFMFILES) $(DESTDIR)/fonts/tfm/public/yhmath |
| 26 |
# |
| 27 |
mkdir -p $(DESTDIR)/fonts/vf/public/yhmath |
| 28 |
$(CLEANRM) $(DESTDIR)/fonts/vf/public/yhmath/* |
| 29 |
cp $(VFFILES) $(DESTDIR)/fonts/vf/public/yhmath |
| 30 |
# |
| 31 |
mkdir -p $(DESTDIR)/fonts/source/public/yhmath |
| 32 |
$(CLEANRM) $(DESTDIR)/fonts/source/public/yhmath/* |
| 33 |
cp $(MFFILES) $(DESTDIR)/fonts/source/public/yhmath |
| 34 |
# |
| 35 |
mkdir -p $(DESTDIR)/fonts/type1/public/yhmath |
| 36 |
$(CLEANRM) $(DESTDIR)/fonts/type1/public/yhmath/* |
| 37 |
cp $(PFBFILES) $(DESTDIR)/fonts/type1/public/yhmath |
| 38 |
# |
| 39 |
mkdir -p $(DESTDIR)/fonts/map/dvips/yhmath |
| 40 |
$(CLEANRM) $(DESTDIR)/fonts/map/dvips/yhmath/* |
| 41 |
cp $(MAPFILES) $(DESTDIR)/fonts/map/dvips/yhmath |
| 42 |
# |
| 43 |
mkdir -p $(DESTDIR)/tex/latex/yhmath |
| 44 |
$(CLEANRM) $(DESTDIR)/tex/latex/yhmath/* |
| 45 |
cp $(TEXFILES) $(DESTDIR)/tex/latex/yhmath |
| 46 |
# |
| 47 |
mkdir -p $(DESTDIR)/doc/latex/yhmath |
| 48 |
$(CLEANRM) $(DESTDIR)/doc/latex/yhmath/* |
| 49 |
cp $(DOCFILES) $(DESTDIR)/doc/latex/yhmath |
| 50 |
# |
| 51 |
mkdir -p $(DESTDIR)/source/latex/yhmath |
| 52 |
$(CLEANRM) $(DESTDIR)/source/latex/yhmath/* |
| 53 |
cp $(SOURCEFILES) $(DESTDIR)/source/latex/yhmath |
| 54 |
# |
| 55 |
mktexlsr $(DESTDIR) |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
$(MFFILES) $(VPLFILES) $(TEXFILES) $(MAPFILES) $(DRVFILES): $(SOURCEFILES) |
| 60 |
latex yhmath.ins |
| 61 |
|
| 62 |
yhmath.pdf: yhmath.drv |
| 63 |
pdflatex yhmath.drv |
| 64 |
pdflatex yhmath.drv |
| 65 |
|
| 66 |
yrcmex10.tfm: $(MFFILES) |
| 67 |
mktextfm --destdir `pwd` yrcmex10 |
| 68 |
rm -f yrcmex10.*pk |
| 69 |
|
| 70 |
yhcmex10.tfm yhcmex10.vf: yhcmex10.vpl |
| 71 |
vptovf yhcmex10.vpl |
| 72 |
|
| 73 |
clean: |
| 74 |
-rm -f $(CLEANFILES) |
| 75 |
-rm -f *.log |
| 76 |
-rm -f *~ |
| 77 |
|
| 78 |
realclean: clean |
| 79 |
-rm -f $(EXTRACLEANFILES) |