#:ts=8
#
#    $Id: Makefile,v 1.31 1992/12/28 17:29:45 mj Exp $
#
#    Makefile for fidogate software, lib/ffxqt directory
#
#
SHELL		=	/bin/sh

#
# For installation ...
#
BINDIR		=	/usr/local/bin
CMDBINDIR	=	/bin
LIBDIR		=	/usr/local/lib/fidonet
SPOOLDIR	=	/usr/spool/fidonet

OWNER		=	news
GROUP		=	news



FFXQTDIR	=	$(LIBDIR)/ffxqt-dir

UNCOMPR		=	gunzip unzip
CMD		=	rmail rnews


all:		$(UNCOMPR) $(CMD)


gunzip:	gunzip.sh
	sed -e 's+??BIN??+$(BINDIR)+g' gunzip.sh >gunzip
	chmod +x gunzip

unzip:	unzip.sh
	sed -e 's+??BIN??+$(BINDIR)+g' unzip.sh >unzip
	chmod +x unzip

rmail:
	rm -f rmail
	ln -s $(CMDBINDIR)/rmail .

rnews:
	rm -f rnews
	ln -s $(CMDBINDIR)/rnews .


clean:
	rm -f $(UNCOMPR) $(CMD)
	rm -f core *~ *.bak *.o tags TAGS
