head     1.2;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @# @;


1.2
date     89.10.12.17.00.24;  author bruce;  state Exp;
branches ;
next     1.1;

1.1
date     89.10.12.16.50.15;  author bruce;  state Exp;
branches ;
next     ;


desc
@Initial revision is as distributed with Dynix Source V3.0.12,
    file dated Jul 29 1987.
Initial revision had RCS ident:
    $Header: Makefile 1.30 87/07/29 $
@


1.2
log
@Removed all RCS-related pages:
    rcsfile.5

RCS has been replaced with a newer version; man pages will be in /usr/local/man.
@
text
@# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
# All rights reserved
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

# $Id$
#
.SUFFIXES:
.SUFFIXES: .5 .Z .P

M	= $(DESTDIR)/usr/man/cat5
C	= 5
ITPF	= /usr/imagen/bin/itpf -x
IPATH	= $(DESTDIR)/usr/include

# The following macro file has extras for hard-copy printing and goes
#	with Sequent techpubs version of tmac.an only.
# All of this is to get a consistent date at the bottom of each page.

TPMACS	= man.macs

MANMACS	= $(DESTDIR)/usr/lib/tmac/tmac.an

SOS	= acct.5 ar.5 types.5 utmp.5

SED	= sed -e '/Copyright/,/^$$/ d' -e '/Log/,/^$$/ d' \
	-e 's/[$$]Header/$$\\\&Header/'

PAGES	=\
	L-devices.$C L-dialcodes.$C L.aliases.$C L.cmds.$C L.sys.$C\
	USERFILE.$C a.out.$C acct.$C aliases.$C ar.$C core.$C dir.$C\
	disktab.$C dump.$C fs.$C fstab.$C gettytab.$C group.$C hosts.$C\
	hosts.equiv.$C mntent.$C mtab.$C netgroup.$C networks.$C\
	passwd.$C phones.$C plot.$C printcap.$C protocols.$C\
	remote.$C rmtab.$C rpc.$C sdb.$C servers.$C services.$C stab.$C\
	tar.$C termcap.$C tp.$C ttys.$C ttytype.$C types.$C\
	utmp.$C uuencode.$C vfont.$C vgrindefs.$C

.5.Z	:
	cd ..; umask 111; nroff $(MANMACS) man5/$< | compress > $M/$<.Z
.5.P	:
	$(ITPF) -M$(MANMACS) ../$(TPMACS) $<

default	:; @@echo "Sorry, this makefile is not meant to be invoked\
without a target."; exit 1

install	:& $(SOS); install -c -m 444 $(PAGES) $(DESTDIR)/usr/man/man$C/
	make $(MFLAGS) $(MRULES) MANMACS="$(MANMACS)" C=Z pages

pages	:& $(PAGES)

#Special handling for pages that .so a header file
acct.5	: acct.5.so
	$(SED) < $(IPATH)/sys/acct.h > acct.h && soelim acct.5.so > $@@
ar.5	: ar.5.so
	$(SED) < $(IPATH)/ar.h > ar.h && soelim ar.5.so > $@@
types.5	: types.5.so
	$(SED) < $(IPATH)/sys/types.h > types.h && soelim types.5.so > $@@
utmp.5	: utmp.5.so
	$(SED) < $(IPATH)/utmp.h > utmp.h && soelim utmp.5.so > $@@

# "ccsmake" required because tools directory is in techpubs view
print	:; /ccsbin/ccsmake $(MFLAGS) TOOLS=/ccs/techpubs/tools C=P pages
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
# $Header: Makefile 1.30 87/07/29 $
d40 1
a40 1
	passwd.$C phones.$C plot.$C printcap.$C protocols.$C rcsfile.$C\
@
