#
# |-----------------------------------------------------------|
# | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 252.227-7013.  |
# |         MIPS Computer Systems, Inc.                       |
# |         950 DeGuigne Avenue                               |
# |         Sunnyvale, California 94088-3650, USA             |
# |-----------------------------------------------------------|
#
# $Header: Makefile,v 1.1.2.1 92/06/24 13:38:07 marker Exp $
#
# installation information:
#	MANDIR	- directory where the manual page should live
#	TROFF	- most appropriate troff command

SHELL=/bin/sh
DESTROOT =
CATDIR = /usr/share/man/catman/u_man/man1
MANDIR = /usr/share/man/u_man/man1
DESTCATDIR = $(DESTROOT)$(CATDIR)
DESTMANDIR = $(DESTROOT)$(MANDIR)
TMACDIR =/usr/lib/tmac
TMACFILE=$(TMACDIR)/tmac.an
DESTTMACFILE=$(DESTROOT)$(TMACFILE)

NROFF	=cat $(DESTTMACFILE) - | tbl | nroff | col
TROFF	=cat $(DESTTMACFILE) - | tbl | troff -Ti10 | lpr -n

ETCDIR = /etc
INSTALL = $(ETCDIR)/mipsinstall
ICOPY = -c
OWNER = bin
GROUP = bin
MANINSTOPTS=$(ICOPY) -m 444 -o $(OWNER) -g $(GROUP)

WHOAMI= pmake.1

SRC= pmake.1

OBJ= pmake.1.formatted

all:
	cat $(SRC) | $(NROFF) > $(OBJ)

clean clobber:
	rm -f $(OBJ)

install: all
	$(INSTALL) $(MANINSTOPTS) -f $(OBJ) $(DESTCATDIR)/$(WHOAMI)
