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

#
# ----- Start configuration defines ------------------------------------------
#
BINDIR		= /usr/local/bin
LIBDIR		= /usr/local/lib/fidonet
SPOOLDIR	= /usr/spool/fidonet

OWNER		= news
GROUP		= news

PERM_PROG	= 755
PERM_DATA	= 644
PERM_SETUID	= 4755
PERM_DIR	= 755

INSTALL_PROG	= install -g $(GROUP) -o $(OWNER) -m $(PERM_PROG)
INSTALL_DATA	= install -g $(GROUP) -o $(OWNER) -m $(PERM_DATA)
INSTALL_SETUID	= install -g $(GROUP) -o $(OWNER) -m $(PERM_SETUID)
INSTALL_DIR	= install -g $(GROUP) -o $(OWNER) -m $(PERM_DIR) -d

# File area for USENET.BBS
PUBLICDIR	= /u1/dos/doc/fido_de

#
# ----- End configuration defines --------------------------------------------
#
# Normally it should not be necessary to change anything below this line
#

LIBFILES	= config config.af aliases hosts areas maus\
		  bounce.restricted bounce.noto bounce.unsecure\
		  config.toss routing packing

LIBBINS		= maintlog



all:	areas $(LIBBINS)



install-dirs:
	$(INSTALL_DIR)    $(LIBDIR)

install:
	$(INSTALL_DATA) $(LIBFILES) $(LIBDIR)
	$(INSTALL_PROG) $(LIBBINS) $(LIBDIR)

admin-hosts:
	cp hosts.head hosts
	admin -l hosts >>hosts

maintlog:	maintlog.sh
	sed -e 's+??SPOOL??+$(SPOOLDIR)+g' \
		-e 's+??LIB??+$(LIBDIR)+g' maintlog.sh >maintlog
	chmod +x maintlog


clean:
	rm -f maintlog
	rm -f core *~ *.bak *.o tags TAGS
