# Do "make latest" to select the latest translations; this step is necessary.
# Do "make install" to copy the pages to their destination.
# Do "make gz" before "make install" if you would like
#     to use compressed source pages.
# Do "make remove" before "make gz" if you would like to remove man
#     pages from system
# Do "make ungz" to revert compressed man pages to the plain files

MANDIR=/usr/share/man/cs

all: remove latest gz install

remove:
	# wipe the old pages
	for i in latest/man?; do for j in $$i/*; do k=`basename $$i`; l=`basename $$j`; rm -f $(MANDIR)/$$k/$$l; done; done


latest:
	sh latest.sh

gz:
	# we have to gzip only real text files
	find latest/man? -type f -exec gzip {} \;

install:
	sh inst.sh

ungz:
	# we have to gunzip only real text files
	find latest/man? -type f -exec gunzip {} \;
