#
# This Makefile just contains targets for building binary distributions.
#
VERSION=0.9
NHVER=322

MAN=	/usr/man/man6/nethack.6 \
	/usr/man/man6/lev_comp.6 \
	/usr/man/man6/dgn_comp.6 \
	/usr/man/man6/recover.6 \
	/usr/man/man6/dlb.6

all:
	@echo "You should `make' from the top level directory."

nhqt.patch:
	cd ../nh$(NHVER)wiz; diff --exclude='*.orig' --exclude='*.rej' -c -r . ../nh$(NHVER)qtwiz | grep -v '^Only' >../Qt/nhqt.patch

distrib: nhqt.patch clean
	-rm nhqt*.tar.gz
	cd ..; tar vcfz nhqt$(VERSION).tar.gz Qt; mv nhqt$(VERSION).tar.gz Qt

distrib-bin:
	echo "NOTE: THIS WILL PICK UP ALL *YOUR* GAME FILES"
	cd /; tar vcfz tmp/nh$(NHVER)qt$(VERSION)Linux-ELF.tar.gz usr/games/nethack usr/games/lib/nethackdir $(MAN)

clean:
	-rm $(GEN) *.bak core doc/*.bak *~ doc/*~
