#inquir:/u/sra/INQUIR/emacs-ui/Makefile, 7-Sep-1990 03:32:39, sra

HDRS =
SRCS = inquir.c
DBUG = -g
EXES = inquir
DEFS = '-DHOLMES_HOST="inquir"' #-DINQUIR_KRB
LIBS = #-lkrb -ldes
INQUIRDIR = /usr/local/bin
ELDIR = /usr/local/emacs/lisp
# Boiler plate below here

CC = gcc
CFLAGS = $(DEFS)
ETAGS = etags
ETFLAGS = -t

all: TAGS Makedep
	$(MAKE) $(MFLAGS) -f Makefile -f Makedep $(EXES)

depend:
	$(RM) $(RMFLAGS) Makedep
	$(MAKE) $(MFLAGS) Makedep

Makedep: Makefile
	$(CC) $(CFLAGS) -M $(SRCS) >junk
	$(MV) junk Makedep

TAGS: $(HDRS) $(SRCS)
	$(ETAGS) $(ETFLAGS) $(HDRS) $(SRCS)

clean:
	$(RM) $(RMFLAGS) $(EXES) *.o

inquir: inquir.o
	$(CC) inquir.o $(LIBS) -o inquir

install: inquir inquir.el
	$(CP) inquir.el $(ELDIR)
	$(CP) inquir $(INQUIRDIR)
	mail -s "$$USER installed inquir on `hostname`" bug-inquir@lcs.mit.edu < /dev/null > /dev/null
	@echo '==========================================================='
	@echo 'To use inquir you will have to (in emacs)'
	@echo 'M-x load-library inquir and then'
	@echo 'M-x inquir '
	@echo ''
	@echo "You could make your users' lives easier by adding the following"
	@echo 'to one of your startup elisp files in your elisp libraries,'
	@echo 'for instance, default.el, loaddefs.el, or whatever:'
	@echo '(loaddefs.el is frequently in /usr/uns/lib/emacs/lisp )
	@echo ''
	@echo '(autoload '"'"'inquir "inquir" "The emacs frontend for the INQUIR user database." t)'
	@echo ''
	@echo 'Since you are (presumably) a sysadmin, you may find it convenient'
	@echo 'to put the following in your .emacs file:'
	@echo ''
	@echo '(autoload '"'"'fake-password-entry "inquir"'
	@echo '  "Insert a password entry for a user at point, using INQUIR." t)'
	@echo 'And, don't forget to put /common/inquir/inquir.man into'
	@echo '/usr/man/manl/inquir.l or the uns equivalent if it's '
	@echo 'not there already.'
