1# From: @(#)Makefile 8.1 (Berkeley) 8/14/93 2# $Id$ 3 4VOLUME= usd/12.vi 5SRCS= vi.in vi.chars 6MACROS= -ms 7CLEANFILES+=summary.* viapwh.* 8SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vitut 9USE_TBL= yes 10 11.include <bsd.doc.mk> 12 13.if !defined(NODOCCOMPRESS) 14SFILE= summary.${PRINTERDEVICE}.gz 15VFILE= viapwh.${PRINTERDEVICE}.gz 16.else 17SFILE= summary.${PRINTERDEVICE} 18VFILE= viapwh.${PRINTERDEVICE} 19.endif 20 21all: ${DFILE} ${SFILE} ${VFILE} 22 23${SFILE}: vi.summary 24 (cd ${SRCDIR}; ${ROFF} ${.ALLSRC}) | ${GZIPCMD} > ${.TARGET} 25 26${VFILE}: vi.apwh.ms 27 (cd ${SRCDIR}; ${ROFF} ${.ALLSRC}) | ${GZIPCMD} > ${.TARGET} 28 29afterinstall: 30 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 31 ${SFILE} ${VFILE} \ 32 ${DESTDIR}${BINDIR}/${VOLUME} 33