######################################################################
# 
# Imakefile -- Imake rules for the manual pages.
# Dean Collins, Thu Jul 30 08:33:47 PDT 1992
#
######################################################################
#
# Copyright (c) 1993,1992 Dean Collins.
# Copyright (c) 1992 University of Idaho, Moscow, Idaho.
# 
# Permission to use, copy, modify, and distribute this software and its
# documentation free of charge for any purpose is hereby granted without
# fee, provided that the above copyright notice appear in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of the University of Idaho
# not be used in advertising or publicity pertaining to distribution of
# the software without specific, written prior permission.  The University
# of Idaho makes no representations about the suitability of this software
# for any purpose.  It is provided "as is" without express or implied warranty.
# 
# THE UNIVERSITY OF IDAHO DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
# IN NO EVENT SHALL THE UNIVERSITY OF IDAHO BE LIABLE FOR ANY SPECIAL,
# INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
######################################################################

ROFF   = nroff -man
#ROFF  = groff -Tascii -man
ROFFPS = groff -Tps -man

MANPAGES = pts.cf.man pts.man ptsager.man xpts.man zdbm.man newprob.man

all:

install::

InstallManPage(xpts,$(MANDIR))
InstallManPage(pts,$(MANDIR))
InstallManPage(pts.cf,$(MANDIR))
InstallManPage(ptsager,$(MANDIR))
InstallManPage(zdbm,$(MANDIR))
InstallManPage(newprob,$(MANDIR))

uninstall::
	$(RM) $(MANDIR)/xpts.ManSuffix \
	      $(MANDIR)/pts.ManSuffix \
	      $(MANDIR)/pts.cf.ManSuffix \ 
	      $(MANDIR)/ptsager.ManSuffix \
	      $(MANDIR)/zdbm.ManSuffix \
	      $(MANDIR)/newprob.ManSuffix
	@echo "uninstall in $(CURRENT_DIR) done"

# You may find the following rules useful.  Or not.  "Your milage may vary..."
ps:
	for i in $(MANPAGES) ;\
	do \
		(echo $$i.ps; $(ROFFPS) $$i >$$i.ps;) ; \
	done

ps.Z: ps
	for i in $(MANPAGES) ;\
	do \
		(compress -fv $$i.ps;) ; \
	done

txt:
	for i in $(MANPAGES) ;\
	do \
		(x=`basename $$i .man`.txt; echo $$x; $(ROFF) $$i >$$x;) ; \
	done
	
