PCF=	kaname-latin1.pcf.gz knm12p.pcf.gz knm12pb.pcf.gz \
	knmhn12x.pcf.gz knmzn12x.pcf.gz knmzn12xb.pcf.gz

DOCS=	readme readme.kaname_bdf kaname.doc readme.knm \
	gijutsu-siryou.doc

.PATH: fonts doc.orig

knmhn12x.pcf.gz: knmhn12x.bdf
	bdftopcf ${.ALLSRC} | gzip -9 > ${.TARGET}

.for F in ${PCF}
${DESTDIR}%%FONTSDIR%%/$F: $F
	mkdir -p ${DESTDIR}%%FONTSDIR%%
	${BSD_INSTALL_DATA} ${.ALLSRC} ${.TARGET}

install: ${DESTDIR}%%FONTSDIR%%/$F
all: ${F}
.endfor

.for F in ${DOCS}
${DESTDIR}%%DOCSDIR%%/$F: $F
	mkdir -p ${DESTDIR}%%DOCSDIR%%
	${BSD_INSTALL_DATA} ${.ALLSRC} ${.TARGET}

install-doc: ${DESTDIR}%%DOCSDIR%%/$F
.endfor

all install install-doc:
	@true
