# This is the make file for ee, the "easy editor".
#
# A file called 'make.local' will be generated which will contain information 
# specific to the local system, such as if it is a BSD or System V based 
# version of UNIX, whether or not it has catgets, or select.  
#
# The "install" target ("make install") will copy the ee binary to 
# the /usr/local/bin directory on the local system.  The man page (ee.1) 
# will be copied into the /usr/local/man/man1 directory.
#
# The "clean" target ("make clean") will remove the ee and new_curse.o 
# object files, and the ee binary.
#

BINDIR = /afs/sipb.mit.edu/project/sipb-new/arch/$(ATHENA_SYS)/bin
MANDIR = /afs/sipb.mit.edu/project/sipb-new/man

all :	localmake buildee

buildee :	
	make -f make.local

localmake:
	@./create.make
	cp make.local makefile.$(ATHENA_SYS)

install :
	-mv $(BINDIR)/ee $(BINDIR)/ee.old
	-rm -f $(BINDIR)/ee.old
	cp ee $(BINDIR)/ee
	chmod 755 $(BINDIR)/ee
	cp ee.1 $(MANDIR)/man1/ee.1
	chmod 644 $(MANDIR)/man1/ee.1

clean :
	rm -f ee.o new_curse.o ee 

