1999-03-06 14:31:51 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.4 1999/03/06 11:31:51 drochner Exp $
|
1999-01-13 11:18:44 +03:00
|
|
|
|
|
|
|
# Ross Harvey <ross@netbsd.org>
|
|
|
|
|
|
|
|
M?= ${.CURDIR:T}
|
|
|
|
V!= /bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh
|
|
|
|
V_S!= /bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh -s
|
|
|
|
|
|
|
|
MAIN= ${.CURDIR}/../common/main ${EXTRA}
|
|
|
|
TARG= INSTALL
|
1999-02-07 21:29:51 +03:00
|
|
|
TARGS= ${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
|
1999-01-13 11:18:44 +03:00
|
|
|
SRCS= ${MAIN} mirrors whatis contents hardware xfer prep install\
|
|
|
|
upgrade donations legal.common legal postinstall ../Makefile.inc\
|
|
|
|
${MERGED_SRCS}
|
|
|
|
|
|
|
|
PRESET= ${GFLAGS} -dV=$V -dV_S=${V_S} -dMACHINE=$M -d.CURDIR=${.CURDIR} -r$M=1
|
|
|
|
|
|
|
|
POST_PLAIN= -P-b -P-u -P-o -Tascii
|
|
|
|
|
|
|
|
ARGS_PS= ${PRESET} -dformat=PostScript
|
|
|
|
ARGS_TXT= ${PRESET} -dformat=ASCII ${POST_PLAIN}
|
|
|
|
ARGS_HTML= ${PRESET} -dformat=HTML ${POST_PLAIN} -ww
|
|
|
|
ARGS_MORE= ${PRESET} -dformat=more -P-h -Tascii
|
|
|
|
|
|
|
|
#
|
|
|
|
# For example...
|
|
|
|
#
|
|
|
|
# .if ri386 ...stuff...
|
|
|
|
# .Ss "Install notes for NetBSD/\*[MACHINE]"
|
|
|
|
#
|
|
|
|
|
|
|
|
CLEANFILES+=${TARGS}
|
|
|
|
|
|
|
|
.for i in ps txt html more
|
|
|
|
all: ${TARG}.$i
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
${TARG}.ps: ${SRCS}
|
|
|
|
groff ${ARGS_PS} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.txt: ${SRCS}
|
|
|
|
groff ${ARGS_TXT} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.html: ${SRCS}
|
|
|
|
groff ${ARGS_HTML} -mdoc2html ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.more: ${SRCS}
|
|
|
|
groff ${ARGS_MORE} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
echosrcs! ${SRCS}
|
|
|
|
@echo ${.ALLSRC}
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../common
|
1999-03-06 14:31:51 +03:00
|
|
|
|
|
|
|
# make the "afterdepend" rule happy
|
|
|
|
.depend:
|
|
|
|
@touch $@
|