#
# HELP - Ver. 1.0
#
#		by R. Stolfa
#
# Modification History
#  08/26/87	Created
#  08/31/87	Added initialize and catch functions
#  09/02/87	Added all .h dependencies
#  07/13/88	Packaged to ship out of OSU
#		Added insert to fix problem with uniqueness
#

BIN	= /usr/local
HELPDIR	= /usr/help
CFLAGS	= -O
HELPOWN = help
HELPGRP = root

OFILES	=\
	main.o append.o catch.o format_help.o free_list.o help.o insert.o \
	initialize.o input_choice.o pchar.o present.o scan_topics.o

help:	$(OFILES)
	cc $(CFLAGS) $(OFILES) -o help

all:	help manual

install:
	cp help $(BIN)
	chmod 711 $(BIN)/help
	chown $(HELPOWN) $(BIN)/help
	chgrp $(HELPGRP) $(BIN)/help
	mkdir $(HELPDIR)
	cp files $(HELPDIR)
	cd $(HELPDIR) ; shar files
	@echo "Remember to fix the ownership & permissions"

manual:
	nroff -man man.form > help.man

clean:
	rm -f *.o help a.out core help.man Help.shar

shar:
	shar README Makefile *.h *.c man.form files > Help.shar

#
# Dependencies
#

main.o append.o catch.o format_help.o free_list.o help.o \
initialize.o input_choice.o insert.o pchar.o present.o scan_topics.o \
	: global.h

main.o catch.o format_help.o free_list.o help.o \
input_choice.o insert.o pchar.o scan_topics.c \
	: /usr/include/stdio.h

initialize.o \
	: /usr/include/signal.h

input_choice.o \
	: /usr/include/ctype.h
