--- /dev/null
+VERSION = @PACKAGE_VERSION@
+
+RM = /bin/rm -f
+TAR = tar
+WGET = wget
+MKDIR = mkdir -p
+SUDO =
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+datadir = @datadir@
+
+FONTS_DIR = $(datadir)/fonts
+BDF_FONTS_DIR = $(datadir)/fonts/BDF
+PCF_FONTS_DIR = $(datadir)/fonts/PCF
+MJ_BDF_FONTS_DIR = $(BDF_FONTS_DIR)/MJ
+MJ_PCF_FONTS_DIR = $(PCF_FONTS_DIR)/MJ
+
+CHISE_FONTS_URL = http://www.chise.org/dist/fonts
+
+BDF_FILES = mj0-48.bdf.gz
+
+OPTS = @ac_configure_args@
+
+all: get
+
+get: $(BDF_FILES)
+
+
+mj0-48.bdf.gz:
+ $(WGET) $(CHISE_FONTS_URL)/BDF/MJ/mj0-48.bdf.gz
+
+
+install:
+ $(MKDIR) $(MJ_BDF_FONTS_DIR)
+ ( $(TAR) -cf - *.bdf.gz ) | \
+ ( cd $(MJ_BDF_FONTS_DIR) && $(TAR) -xf - )
+ $(MKDIR) $(MJ_PCF_FONTS_DIR)
+ for file in $(BDF_FILES) ; do \
+ FONT=`basename $${file} .bdf.gz`.pcf.gz ; \
+ gzip -d < $${file} | bdftopcf | \
+ gzip -9 > $(MJ_PCF_FONTS_DIR)/$${FONT} ; \
+ done
+ cd $(MJ_PCF_FONTS_DIR) && mkfontdir
+
+
+distclean:
+ -$(RM) Makefile
+
+distclean-all:
+ -$(RM) *.bdf Makefile