13
SUBDIRS = European Asian Chinese Japanese Ethiopic Misc
14
SUBDIRS_X = Chinese.X Japanese.X Korean.X
15
SUBDIRS_BIG = European.BIG Chinese.BIG Japanese.BIG
24
$(RM) config.* Makefile
29
@if [ -d ${fontdir} ] ; then \
30
echo "Deleting PCF fonts installed by the previous intlfonts..." ; \
31
$(SHELL) ${srcdir}/rmoldfnt.sh ${fontdir} ; \
33
$(INSTALL) -d ${fontdir} ; \
35
@if [ -f ${fontdir}/fonts.alias ] ; then \
36
cat ${fontdir}/fonts.alias > ${fontdir}/temp ; \
38
rm -f ${fontdir}/temp ; \
40
@for dirs in ${SUBDIRS} ${SUBDIRS_X} ${SUBDIRS_BIG}; do \
41
if [ -d ${srcdir}/$${dirs} ] ; then \
42
for f in ${srcdir}/$${dirs}/*.bdf; do \
43
FONT=`basename $${f} .bdf`.pcf ; \
44
echo "Installing ${fontdir}/$${FONT}..." ; \
45
$(BDFTOPCF) $${f} > ${fontdir}/$${FONT} ; \
47
if [ -f ${srcdir}/$${dirs}/fonts.alias ] ; then \
48
cat ${srcdir}/$${dirs}/fonts.alias >> ${fontdir}/temp ; \
52
@if [ -f ${fontdir}/temp ] ; then \
53
sort < ${fontdir}/temp | uniq > ${fontdir}/fonts.alias ; \
54
rm -f ${fontdir}/temp ; \
56
@if [ "${COMPRESS}" != "no" ] ; then \
57
echo "Compressing PCF fonts by ${COMPRESS}..." ; \
58
rm -f ${fontdir}/*.pcf.* ; \
59
${COMPRESS} ${fontdir}/*.pcf ; \
61
@echo "Making ${fontdir}/fonts.dir..."
62
$(MKFONTDIR) ${fontdir}
63
@echo "-----------------------------------------------------------"
64
@echo "Read README for how to inform X server about the new fonts."
65
@echo "-----------------------------------------------------------"
68
@if [ -d ${fontdir}/bdf ] ; then \
69
echo "Deleting BDF fonts installed by the previous intlfonts..." ; \
70
$(SHELL) ${srcdir}/rmoldfnt.sh ${fontdir}/bdf ; \
72
$(INSTALL) -d ${fontdir}/bdf ; \
74
@echo "Installing BDF fonts..."
75
@for dirs in ${SUBDIRS} ${SUBDIRS_X} ${SUBDIRS_BIG}; do \
76
if [ -d ${srcdir}/$${dirs} ] ; then \
77
for f in ${srcdir}/$${dirs}/*.bdf; do \
78
$(INSTALL) -m 0444 $${f} ${fontdir}/bdf ; \
84
@if [ -d ${srcdir}/Type1 ] ; then \
85
[ -d ${fontdir}/Type1 ] || $(INSTALL) -d ${fontdir}/Type1 ; \
86
echo "Installing Type1 fonts..." ; \
87
for f in ${srcdir}/Type1/*.?f?; do \
88
$(INSTALL) -c -m 0444 $${f} ${fontdir}/Type1 ; \
91
echo "No Type1 fonts" ; \
95
@if [ -d ${srcdir}/TrueType ] ; then \
96
[ -d ${fontdir}/TrueType ] || $(INSTALL) -d ${fontdir}/TrueType ; \
97
echo "Installing TrueType fonts..." ; \
98
for f in ${srcdir}/TrueType/*.ttf; do \
99
$(INSTALL) -c -m 0444 $${f} ${fontdir}/TrueType ; \
102
echo "No TrueType fonts" ; \
107
# Automatic makefile rebuilding
108
Makefile: $(srcdir)/Makefile.in config.status
111
$(srcdir)/configure: $(srcdir)/configure.in
112
cd $(srcdir) && autoreconf
114
./config.status: $(srcdir)/configure
115
cd . && ./config.status --recheck