# Copyright (C) 1994-95 Cronyx Ltd.
# Author: Serge Vakulenko, <vak@cronyx.ru>
# Changes Copyright (C) 1996 by Andrey A. Chernov, Moscow, Russia.
#
# This software may be used, modified, copied, distributed, and sold,
# in both source and binary form provided that the above copyright
# and these terms are retained. Under no circumstances is the author
# responsible for the proper functioning of this software, nor does
# the author assume any responsibility for damages incurred with its use.

# ATTENTION: perl, compress, bdftopcf, mkfontdir required to build this set

VERSION = 2.0

DESTDIR = /usr/X11R6/lib/X11/fonts/cyrillic
DIRS =  100dpi 75dpi misc

all clean cleanall:
	for i in ${DIRS}; do \
		cd $$i; make $@; cd ..; \
	done

install:
	-mkdir -p $(DESTDIR)
	cp xrus.info $(DESTDIR)
	chmod 644 $(DESTDIR)/xrus.info
	for i in ${DIRS}; do \
		cd $$i; make DESTDIR=${DESTDIR}/$$i install; cd ..; \
	done

src-dist: cleanall ../xrus-$(VERSION)-src.tgz

bin-dist: ../xrus-$(VERSION)-bin.tgz

../xrus-$(VERSION)-src.tgz:
	tar cf - . | gzip > $@

../xrus-$(VERSION)-bin.tgz: $(DESTDIR)
	(cd $(DESTDIR)/..; tar cf - cyrillic) | gzip > $@

