/* Imakefile for Xconq library. */

#include "../Local.config"

XCOMM xmkmf takes "/*" to mean "begin comment", so we use /STAR.  Yuck!
#define STAR *

all::

imf.dir:
	./makedir.sh *.imf | sed -e s,./,, >>imf.tmp
	../move-if-change imf.tmp imf.dir

install::
	$(MKDIRHIER) $(GAMELIBDIR)
	@echo copying library files to $(GAMELIBDIR)
	for i in `ls *.dir *.g *.imf news.txt`; do cp $$i $(GAMELIBDIR); done
	chown $(GAMEUID) $(GAMELIBDIR) $(GAMELIBDIR)/STAR
	chgrp $(GAMEGRP) $(GAMELIBDIR) $(GAMELIBDIR)/STAR
	chmod $(DIRPERM) $(GAMELIBDIR)
	chmod $(FILEPERM) $(GAMELIBDIR)/STAR
	$(MKDIRHIER) $(SCORESDIR)
	chown $(GAMEUID) $(SCORESDIR)
	chgrp $(GAMEGRP) $(SCORESDIR)
	chmod $(DIRPERM) $(SCORESDIR)

clean::
